From c5e2e0ef4e16c16d96571d1711d56fed46015843 Mon Sep 17 00:00:00 2001 From: oivindhl <oivindhl@stud.ntnu.no> Date: Tue, 25 Sep 2018 13:33:25 +0200 Subject: [PATCH] =?UTF-8?q?kj=C3=B8r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/persondao.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/persondao.test.js b/dao/persondao.test.js index fe8427f..a415fac 100644 --- a/dao/persondao.test.js +++ b/dao/persondao.test.js @@ -103,7 +103,7 @@ test("delete person from db", done => { console.log( "Test callback: status= " + status + ", data=" +JSON.stringify(data) ); - //expect(personDao.getAll(callback)).toBe(2); + expect(data.lenght).toBeLessThanOrEqual(2); expect(data.affectedRows).toBeGreaterThanOrEqual(1); done(); } -- GitLab