From bd385ec062c4692bd1d3e58e68771cfaac346c0f Mon Sep 17 00:00:00 2001 From: Yu-Hung Ou Date: Fri, 9 Mar 2018 23:27:49 +1100 Subject: [PATCH 1/2] increased the minimum count of dummy folders to 2 --- tests/fixtures/TestDummy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/TestDummy.js b/tests/fixtures/TestDummy.js index 4edcc9cf..c62d3849 100644 --- a/tests/fixtures/TestDummy.js +++ b/tests/fixtures/TestDummy.js @@ -22,7 +22,7 @@ function dummyBoostnoteJSONData (override = {}, isLegacy = false) { if (override.folders == null) { data.folders = [] - var folderCount = Math.floor((Math.random() * 5)) + 1 + var folderCount = Math.floor((Math.random() * 5)) + 2 for (var i = 0; i < folderCount; i++) { var key = keygen() while (data.folders.some((folder) => folder.key === key)) { From 410e82e3754f3640cad514925716129a30ad433b Mon Sep 17 00:00:00 2001 From: Yu-Hung Ou Date: Fri, 9 Mar 2018 23:28:01 +1100 Subject: [PATCH 2/2] increased the minimum count of dummy notes to 2 --- tests/fixtures/TestDummy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/TestDummy.js b/tests/fixtures/TestDummy.js index c62d3849..a1f5d16e 100644 --- a/tests/fixtures/TestDummy.js +++ b/tests/fixtures/TestDummy.js @@ -105,7 +105,7 @@ function dummyStorage (storagePath, override = {}) { sander.writeFileSync(path.join(storagePath, 'boostnote.json'), JSON.stringify(jsonData)) var notesData = [] - var noteCount = Math.floor((Math.random() * 15)) + 1 + var noteCount = Math.floor((Math.random() * 15)) + 2 for (var i = 0; i < noteCount; i++) { var key = keygen() while (notesData.some((note) => note.key === key)) {