Skip to content

Commit 83acbd1

Browse files
committed
Fix tests
1 parent 13fc7da commit 83acbd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/src/tests/storage.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function storageTests() {
5151
it('can clear sync', async () => {
5252
storage.setItemSync('quack', 'bark');
5353
storage.setItemSync('quack2', 'bark');
54-
storage.clear();
54+
storage.clearSync();
5555
const res = storage.getItemSync('quack');
5656
expect(res).to.equal(undefined);
5757
});

src/Storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Storage {
1616
this.db = open({ ...options, name: '__opsqlite_storage' });
1717
this.db.executeSync('PRAGMA mmap_size=268435456');
1818
this.db.executeSync(
19-
'CREATE TABLE IF NOT EXISTS storage (key TEXT PRIMARY KEY, value TEXT) STRICT WITHOUT ROWID'
19+
'CREATE TABLE IF NOT EXISTS storage (key TEXT PRIMARY KEY, value TEXT) WITHOUT ROWID'
2020
);
2121
}
2222

0 commit comments

Comments
 (0)