Skip to content

Commit 5932349

Browse files
committedSep 23, 2022
fix useSQLite.test.ts for Web platform
1 parent 034c466 commit 5932349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/useSQLite.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ jest.mock('@capacitor-community/sqlite', () => {
139139
});
140140
it('Check CapacitorSQLite available for web platform', async () => {
141141
const capacitorMock = (Capacitor as any);
142-
await capacitorMock.init(false, 'web')
142+
await capacitorMock.init(true, 'web')
143143
const { isAvailable } = useSQLite({});
144-
expect(isAvailable).toBe(false);
144+
expect( isAvailable).toBe(true);
145145

146146
});
147147

0 commit comments

Comments
 (0)