diff --git a/tests.js b/tests.js index 08222c3..c21ceaa 100644 --- a/tests.js +++ b/tests.js @@ -159,8 +159,9 @@ describe("sandpit", () => { it("check that our sandpit works", () => { // This will perform database tasks, // instead of using our mocks because they are removed + const initialSize = store.database.getUsers().length; store.addUser(harry, () => {}); - assert.match(store.database.getUsers().length, 1); + assert.match(store.database.getUsers().length, initialsize + 1); });