@worldbrain/storex-sync
Version:
Offline-first syncing between multiple databases using Storex
17 lines (14 loc) • 572 B
text/typescript
import { setupStorexTest } from "@worldbrain/storex-pattern-modules/lib/index.tests";
import { runTests } from "./index.tests"
import { SharedSyncLogStorage } from "./storex"
describe('SharedSyncLogStorage', () => {
async function createLog() {
return (await setupStorexTest<{sharedSyncLog : SharedSyncLogStorage}>({
collections: {},
modules: {
sharedSyncLog: (({ storageManager }) => new SharedSyncLogStorage({ storageManager }))
}
})).modules.sharedSyncLog
}
runTests({createLog})
})