From 55266e56944912e0e02e8cb2e60f8464f25f5d91 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 14 Dec 2017 17:41:53 +0000 Subject: [PATCH] Fixed test units --- CliClient/tests/synchronizer.js | 2 +- CliClient/tests/test-utils.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CliClient/tests/synchronizer.js b/CliClient/tests/synchronizer.js index b2ad575591..5466c35be4 100644 --- a/CliClient/tests/synchronizer.js +++ b/CliClient/tests/synchronizer.js @@ -671,7 +671,7 @@ describe('Synchronizer', function() { done(); }); - it('items should skip items that cannot be synced', async (done) => { + it('should skip items that cannot be synced', async (done) => { let folder1 = await Folder.save({ title: "folder1" }); let note1 = await Note.save({ title: "un", is_todo: 1, parent_id: folder1.id }); const noteId = note1.id; diff --git a/CliClient/tests/test-utils.js b/CliClient/tests/test-utils.js index dbbf71a2b5..f5d5108409 100644 --- a/CliClient/tests/test-utils.js +++ b/CliClient/tests/test-utils.js @@ -101,6 +101,7 @@ function clearDatabase(id = null) { 'DELETE FROM tags', 'DELETE FROM note_tags', 'DELETE FROM master_keys', + 'DELETE FROM settings', 'DELETE FROM deleted_items', 'DELETE FROM sync_items', @@ -145,9 +146,9 @@ async function setupDatabaseAndSynchronizer(id = null) { synchronizers_[id] = await syncTarget.synchronizer(); } - if (!encryptionServices_[id]) { + //if (!encryptionServices_[id]) { encryptionServices_[id] = new EncryptionService(); - } + //} if (syncTargetId_ == SyncTargetRegistry.nameToId('filesystem')) { fs.removeSync(syncDir)