From 3e8e7b6cf603fddc0daba842fadd6d87cafae22f Mon Sep 17 00:00:00 2001 From: "Michael J. Blackburn" Date: Wed, 20 Jul 2022 20:38:09 -0400 Subject: [PATCH] minor correction, size = size+1, not =1 --- tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); });