From e276b25b0ded1ad136f699606e5392473f3fb880 Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Wed, 9 Oct 2024 13:20:31 +0200 Subject: [PATCH] Update test with new table structure. --- packages/web/tests/on_change.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/tests/on_change.test.ts b/packages/web/tests/on_change.test.ts index 71ee7d92..676866df 100644 --- a/packages/web/tests/on_change.test.ts +++ b/packages/web/tests/on_change.test.ts @@ -32,7 +32,7 @@ describe('OnChange Tests', () => { }); powersync.onChange({ onChange }, { tables: tablesToWatch, signal: abortController.signal }); - powersync.execute('INSERT INTO assets(id, make, customer_id) VALUES (uuid(), ?, ?)', ['test', uuid()]); + await powersync.execute('INSERT INTO assets(id, make, customer_id) VALUES (uuid(), ?, ?)', ['test', uuid()]); await vi.waitFor( () => { expect(onChange).toHaveBeenCalled(); @@ -54,7 +54,7 @@ describe('OnChange Tests', () => { await runOnChangeTest(['ps_data__assets'], ['ps_data__assets']); }); - it('internal "ps_oplog" table onChange test', async () => { - await runOnChangeTest(['ps_oplog'], ['ps_oplog']); + it('internal "ps_crud" table onChange test', async () => { + await runOnChangeTest(['ps_crud'], ['ps_crud']); }); });