Skip to content

Commit 4637e2f

Browse files
kevin-dpclaude
andcommitted
Fix missed type arguments in tauri persistence test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cd599a1 commit 4637e2f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/tauri-db-sqlite-persistence/tests/tauri-persistence.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ it(`persists data across app restart (close and reopen)`, async () => {
4141
const collectionId = `todos-restart`
4242

4343
const firstDatabase = createTauriSQLiteTestDatabase({ filename: dbPath })
44-
const firstPersistence = createTauriPersistence<Todo, string>({
44+
const firstPersistence = createTauriPersistence({
4545
database: firstDatabase,
4646
})
4747
const firstAdapter = firstPersistence.adapter
@@ -69,7 +69,7 @@ it(`persists data across app restart (close and reopen)`, async () => {
6969
activeCleanupFns.push(async () => {
7070
await Promise.resolve(secondDatabase.close())
7171
})
72-
const secondPersistence = createTauriPersistence<Todo, string>({
72+
const secondPersistence = createTauriPersistence({
7373
database: secondDatabase,
7474
})
7575
const secondAdapter = secondPersistence.adapter
@@ -95,8 +95,8 @@ it(`shares the same runtime behavior through index and tauri entrypoints`, async
9595
await Promise.resolve(database.close())
9696
})
9797

98-
const indexPersistence = createIndexPersistence<Todo, string>({ database })
99-
const tauriPersistence = createTauriPersistence<Todo, string>({ database })
98+
const indexPersistence = createIndexPersistence({ database })
99+
const tauriPersistence = createTauriPersistence({ database })
100100

101101
await indexPersistence.adapter.applyCommittedTx(collectionId, {
102102
txId: `tx-entrypoint-1`,
@@ -128,7 +128,7 @@ it(`resumes persisted sync after cleanup and restart`, async () => {
128128
await Promise.resolve(database.close())
129129
})
130130

131-
const persistence = createTauriPersistence<Todo, string>({
131+
const persistence = createTauriPersistence({
132132
database,
133133
})
134134
const collection = createCollection(

0 commit comments

Comments
 (0)