mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Fix tests
This commit is contained in:
parent
ce8e5e61be
commit
091bf4a3d7
@ -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 () => {
|
||||
|
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user