Skip to content

Commit

Permalink
fix: [#1313] fix flakey time tests
Browse files Browse the repository at this point in the history
  • Loading branch information
recurser committed Jan 3, 2024
1 parent 14cd632 commit 804bb42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/converters/__tests__/TimestampConverter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ describe('converters', () => {
it('converts the input to local time', async () => {
await expectOutput(
TimestampConverter,
'1234567890',
'1234524690',
'datetime-local-output',
'2009-02-13 23:31',
'2009-02-13 11:31',
)
})

Expand All @@ -24,7 +24,7 @@ describe('converters', () => {
it('handles human-readable times', async () => {
await expectOutput(
TimestampConverter,
'January 2020',
'January 1st 2020',
'datetime-local-output',
'2020-01-01 12:00',
)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/inputs/__tests__/TimestampInput.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('inputs', () => {
})

it('parses human-readable time strings', () => {
const data = 'January 2020'
const data = 'January 1st 2020'
const expected = '1577880000000'
expect(input(data)).toEqual(expected)
})
Expand Down

0 comments on commit 804bb42

Please sign in to comment.