chore: implement js test suites
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@ describe('daily recurrence', () => {
|
||||
)
|
||||
|
||||
expect(instances.map(instance => new Date(instance.start).getDate())).toEqual([5, 7, 9])
|
||||
expect(instances.every(instance => instance.durationMs === 60 * 60 * 1000)).toBe(true)
|
||||
expect(instances.every(instance => instance.duration === 60 * 60 * 1000)).toBe(true)
|
||||
expect(new Set(instances.map(instance => instance.key)).size).toBe(3)
|
||||
})
|
||||
|
||||
@@ -179,7 +179,7 @@ describe('recurrence mutations', () => {
|
||||
|
||||
expect(instances).toHaveLength(2)
|
||||
expect(new Date(moved!.start).getHours()).toBe(14)
|
||||
expect(moved!.durationMs).toBe(2 * 60 * 60 * 1000)
|
||||
expect(moved!.duration).toBe(2 * 60 * 60 * 1000)
|
||||
expect(moved!.label).toBe('Moved standup')
|
||||
expect(moved!.color).toBe('#abcdef')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user