Skip to content

Commit

Permalink
test: fix test by adding tz to Date objects
Browse files Browse the repository at this point in the history
  • Loading branch information
castarco committed Mar 17, 2021
1 parent 8ce8941 commit 449595e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integrationTests/__tests__/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ describe('decode', () => {
describe('timestamp', () => {
it('encodes timestamp', () => {
expect(decoded.timestamp).toBeDefined()
expect(decoded.timestamp).toEqual(new Date('2014-11-01T12:24:33.123'))
expect(decoded.timestamp).toEqual(new Date('2014-11-01T11:24:33.123Z'))
})

it('encodes timestampRepeated', () => {
expect(decoded.timestampRepeated).toBeDefined()
expect(decoded.timestampRepeated).toEqual([
new Date('2014-02-26T12:00:00.234'),
new Date('2013-05-26T12:00:10.221')
new Date('2014-02-26T11:00:00.234Z'),
new Date('2013-05-26T10:00:10.221Z')
])
})
})
Expand Down

0 comments on commit 449595e

Please sign in to comment.