Chore/retire dirty chai
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
import chai from 'chai'
|
||||
import dirtyChai from 'dirty-chai'
|
||||
import { expect } from 'chai'
|
||||
import cycleModule from '../lib/cycle'
|
||||
|
||||
const { expect } = chai
|
||||
chai.use(dirtyChai)
|
||||
|
||||
const cycleStartDay = { date: '2018-05-03' }
|
||||
|
||||
const cycle = [
|
||||
{ date: '2018-05-05' },
|
||||
{ date: '2018-05-04' },
|
||||
cycleStartDay,
|
||||
]
|
||||
const cycle = [{ date: '2018-05-05' }, { date: '2018-05-04' }, cycleStartDay]
|
||||
|
||||
const cycleDaysSortedByDate = [
|
||||
{ date: '2018-07-05' },
|
||||
@@ -32,7 +24,6 @@ const cycleStartsSortedByDate = [
|
||||
|
||||
describe('getCycleByStartDay', () => {
|
||||
it('gets cycle by cycle start day', () => {
|
||||
|
||||
const { getCycleByStartDay } = cycleModule({
|
||||
cycleDaysSortedByDate,
|
||||
cycleStartsSortedByDate,
|
||||
|
||||
Reference in New Issue
Block a user