Skip to content

Commit

Permalink
Update test with new table structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Oct 9, 2024
1 parent e9b40fe commit e276b25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web/tests/on_change.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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']);
});
});

0 comments on commit e276b25

Please sign in to comment.