1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Fix tests

This commit is contained in:
Laurent Cozic 2024-01-05 18:16:09 +00:00
parent ce8e5e61be
commit 091bf4a3d7
2 changed files with 15 additions and 12 deletions

View File

@ -57,6 +57,8 @@ describe('SearchEngine.resources', () => {
expect(results[0].id).toBe(note1.id);
expect(results[0].item_id).toBe(resource.id);
expect(results[0].item_type).toBe(ModelType.Resource);
await ocrService.dispose();
}));
it('should delete normalized data when a resource is deleted', async () => {

View File

@ -309,20 +309,21 @@ async function clearDatabase(id: number = null) {
await ItemChange.waitForAllSaved();
const tableNames = [
'notes',
'folders',
'resources',
'tags',
'note_tags',
'master_keys',
'item_changes',
'note_resources',
'settings',
'deleted_items',
'sync_items',
'notes_normalized',
'revisions',
'folders',
'item_changes',
'items_normalized',
'key_values',
'master_keys',
'note_resources',
'note_tags',
'notes_normalized',
'notes',
'resources',
'revisions',
'settings',
'sync_items',
'tags',
];
const queries = [];