chore: implement js test suites
Build Test / test (pull_request) Successful in 34s
JS Unit Tests / test (pull_request) Successful in 41s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-07-24 00:13:45 -04:00
parent 22775b1f32
commit 844bbd0ad0
8 changed files with 1912 additions and 356 deletions
+2 -2
View File
@@ -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')
})