diff --git a/dao/persondao.test.js b/dao/persondao.test.js index 843c720299e3dcefe3918be65b859ea50f198ccc..333d4c1f67eafdc8ec41f3f7ef351a9de57a3ca0 100644 --- a/dao/persondao.test.js +++ b/dao/persondao.test.js @@ -112,3 +112,14 @@ test("get all persons from db", done => { personDao.getAll(callback); }); + +test("fail this should", done => { + function callback(status, data) { + console.log( + "Test callback: status=" + status + ", data=" + JSON.stringify(data) + ); + expect(data).toBe(1); + done(); + } + callback(100, 2) +});