Skip to content

Commit 541ee5d

Browse files
committed
Fix Kysely test.
1 parent d5c09c9 commit 541ee5d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/kysely-driver/tests/setup/db.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ export const getPowerSyncDb = () => {
1818

1919
return database;
2020
};
21-
22-
export const getKyselyDb = wrapPowerSyncWithKysely<Database>(getPowerSyncDb());

packages/kysely-driver/tests/sqlite/sqlite-connection.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ describe('PowerSyncConnection', () => {
2121

2222
it('should execute a select query using getAll from the table', async () => {
2323
await powerSyncDb.execute('INSERT INTO users (id, name) VALUES(uuid(), ?)', ['John']);
24-
2524
const getAllSpy = vi.spyOn(powerSyncDb, 'getAll');
2625

2726
const compiledQuery: CompiledQuery = {
@@ -35,7 +34,7 @@ describe('PowerSyncConnection', () => {
3534

3635
expect(rows.length).toEqual(1);
3736
expect(rows[0].name).toEqual('John');
38-
expect(getAllSpy).toHaveBeenCalledTimes(1);
37+
expect(getAllSpy).toHaveBeenCalledWith('SELECT * From users', []);
3938
});
4039

4140
it('should insert to the table', async () => {

0 commit comments

Comments
 (0)