1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-03 15:32:30 +02:00

Fixed test units

This commit is contained in:
Laurent Cozic 2017-12-14 17:41:53 +00:00
parent 1008b1835b
commit 55266e5694
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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)