Chore/jest

This commit is contained in:
Sofiya Tepikin
2022-08-12 09:31:33 +00:00
parent 0cd2770996
commit a103949f7c
16 changed files with 6978 additions and 912 deletions
+2 -3
View File
@@ -1,4 +1,3 @@
import { expect } from 'chai'
import cycleModule from '../lib/cycle'
const cycleStartDay = { date: '2018-05-03' }
@@ -23,12 +22,12 @@ const cycleStartsSortedByDate = [
]
describe('getCycleByStartDay', () => {
it('gets cycle by cycle start day', () => {
test('gets cycle by cycle start day', () => {
const { getCycleByStartDay } = cycleModule({
cycleDaysSortedByDate,
cycleStartsSortedByDate,
})
expect(getCycleByStartDay(cycleStartDay)).to.eql(cycle)
expect(getCycleByStartDay(cycleStartDay)).toEqual(cycle)
})
})