Skip to content

Commit

Permalink
vCalendarDragAndDrop.spec.js: add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Dec 24, 2023
1 parent 18f7662 commit 5a50d8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/helpers/__tests__/vCalendarDragAndDrop.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ describe('toTime', () => {
describe('roundTimeToNearestQuarterHour', () => {
it.each([
['22:22:00', '22:15'],
['22:22:31', '22:30'],
['10:20:00', '10:15'],
['13:00:20', '13:00'],
['14:13:00', '14:15'],
['23:52:31', '00:00'],
])('maps %s to %s', (input, expected) => {
const epochMillis = asEpochMillis(input)
const roundedEpoch = roundTimeToNearestQuarterHour(epochMillis)
Expand Down

0 comments on commit 5a50d8d

Please sign in to comment.