Skip to content

Commit

Permalink
test: fix failed test caused by timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Jan 30, 2024
1 parent 2fc8f83 commit 933764f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions __tests__/unit/utils/time.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ test('Unixtime should be convert to ISODateTime', () => {
})

test('splittedBy', () => {
expect(splittedBy(1644075206, 'ja-JP', "/"))
.toEqual(['2022', '02', '06'])
const result = splittedBy(1644075206, 'ja-JP', "/");
expect(result[0]).toEqual('2022')
expect(result[1]).toEqual('02')
// .toEqual(['2022', '02', '06']) NOTE: local -> JST, CI -> UTC
});

0 comments on commit 933764f

Please sign in to comment.