diff --git a/tests/migrations.test.ts b/tests/migrations.test.ts index f768eb7..6558fe2 100644 --- a/tests/migrations.test.ts +++ b/tests/migrations.test.ts @@ -37,7 +37,14 @@ test('dataMigrations unhappy path', async (t) => { }); test('Serializing & Deserializing Queue', (t) => { - const serialized = serializeQueue([queueItemSample]); + const sample: Queue.Item = { + added: queueItemSample.added, + id: queueItemSample.id, + sortIndex: queueItemSample.id, + text: queueItemSample.text, + url: queueItemSample.url, + }; + const serialized = serializeQueue([sample]); t.snapshot(serialized, 'Serialized'); serialized.extra = 'Extra'; diff --git a/tests/snapshots/tests/migrations.test.ts.md b/tests/snapshots/tests/migrations.test.ts.md index 3cb7b41..589909c 100644 --- a/tests/snapshots/tests/migrations.test.ts.md +++ b/tests/snapshots/tests/migrations.test.ts.md @@ -53,6 +53,7 @@ Generated by [AVA](https://avajs.dev). qi1: { added: '2022-03-02T16:00:00.000Z', id: 1, + sortIndex: 1, text: 'Sample', url: 'https://example.org', }, @@ -64,6 +65,7 @@ Generated by [AVA](https://avajs.dev). { added: Date 2022-03-02 16:00:00 UTC {}, id: 1, + sortIndex: 1, text: 'Sample', url: 'https://example.org', }, diff --git a/tests/snapshots/tests/migrations.test.ts.snap b/tests/snapshots/tests/migrations.test.ts.snap index 16a19a3..a4c37c4 100644 Binary files a/tests/snapshots/tests/migrations.test.ts.snap and b/tests/snapshots/tests/migrations.test.ts.snap differ