Skip to content

Commit

Permalink
[#39] Add new file: db.db to keep main database not removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jul 25, 2023
1 parent 60c3b35 commit b2e7bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/lib/__test__/cascades.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jest.mock('expo-file-system', () => ({
downloadUrl,
fileUrl,
})),
readDirectoryAsync: jest.fn(async (fileUri) => ['file.sqlite', 'file.sqlite-journal']),
readDirectoryAsync: jest.fn(async (fileUri) => ['file.sqlite', 'file.sqlite-journal', 'db.db']),
deleteAsync: jest.fn(async (fileUri) => true),
}));

Expand Down Expand Up @@ -118,6 +118,6 @@ describe('cascades', () => {

it('should drop all files in SQLITE directoy correctly', async () => {
const Sqlfiles = await cascades.dropFiles();
expect(Sqlfiles).toEqual(['file.sqlite', 'file.sqlite-journal']);
expect(Sqlfiles).toEqual(['file.sqlite', 'file.sqlite-journal', 'db.db']);
});
});

0 comments on commit b2e7bd1

Please sign in to comment.