Skip to content

Commit e276b25

Browse files
committed
Update test with new table structure.
1 parent e9b40fe commit e276b25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/web/tests/on_change.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('OnChange Tests', () => {
3232
});
3333

3434
powersync.onChange({ onChange }, { tables: tablesToWatch, signal: abortController.signal });
35-
powersync.execute('INSERT INTO assets(id, make, customer_id) VALUES (uuid(), ?, ?)', ['test', uuid()]);
35+
await powersync.execute('INSERT INTO assets(id, make, customer_id) VALUES (uuid(), ?, ?)', ['test', uuid()]);
3636
await vi.waitFor(
3737
() => {
3838
expect(onChange).toHaveBeenCalled();
@@ -54,7 +54,7 @@ describe('OnChange Tests', () => {
5454
await runOnChangeTest(['ps_data__assets'], ['ps_data__assets']);
5555
});
5656

57-
it('internal "ps_oplog" table onChange test', async () => {
58-
await runOnChangeTest(['ps_oplog'], ['ps_oplog']);
57+
it('internal "ps_crud" table onChange test', async () => {
58+
await runOnChangeTest(['ps_crud'], ['ps_crud']);
5959
});
6060
});

0 commit comments

Comments
 (0)