mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
increased the minimum count of dummy notes to 2
This commit is contained in:
2
tests/fixtures/TestDummy.js
vendored
2
tests/fixtures/TestDummy.js
vendored
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user