From 410e82e3754f3640cad514925716129a30ad433b Mon Sep 17 00:00:00 2001 From: Yu-Hung Ou Date: Fri, 9 Mar 2018 23:28:01 +1100 Subject: [PATCH] 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)) {