Add test for missing mucus vaues

This commit is contained in:
Julia Friesel
2019-05-08 06:43:48 +02:00
parent 51160b033b
commit f1ca709f25
+5
View File
@@ -7,6 +7,11 @@ chai.use(dirtyChai)
import getSensiplanMucus from '../lib/nfp-mucus'
describe('getSensiplanMucus', () => {
it('returns null if there is no value for feeling or texture', () => {
expect(getSensiplanMucus()).to.be.null()
expect(getSensiplanMucus(undefined, 3)).to.be.null()
expect(getSensiplanMucus(2, undefined)).to.be.null()
})
describe('results in t for:', () => {
it('dry feeling and no texture', function () {