Skip to content

Commit 36d1b0a

Browse files
committed
test: use toBe, not snapshot (?)
Signed-off-by: 0x009922 <[email protected]>
1 parent d82fae6 commit 36d1b0a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/core/test/misc.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ describe('JSON/string serialisation', () => {
5858
})
5959

6060
test('Timestamp serialises as ISO string', () => {
61-
expect({ timestamp: dm.Timestamp.fromDate(new Date(1022, 10, 10)) }).toMatchInlineSnapshot(`
62-
{
63-
"timestamp": "1022-11-09T14:41:01.000Z",
64-
}
65-
`)
61+
expect(dm.Timestamp.fromDate(new Date(1022, 10, 10, 0, 0, 0, 0)).toJSON()).toBe('1022-11-09T14:41:01.000Z')
6662
})
6763
})
6864

0 commit comments

Comments
 (0)