Skip to content
Snippets Groups Projects
Commit 407d33e3 authored by Øivind Haugerøy Larsson's avatar Øivind Haugerøy Larsson
Browse files

ey

parent b34bf89f
No related branches found
No related tags found
No related merge requests found
Pipeline #22964 passed with stages
in 1 minute and 50 seconds
......@@ -100,11 +100,14 @@ test("update person from db", done => {
test("delete person from db", done => {
function callback(status, data) {
personDao.getAll(getCallback);
}
function getCallback(status, data) {
console.log(
"Test callback: status= " + status + ", data=" +JSON.stringify(data)
);
expect(data.length).toBeLessThanOrEqual(2);
expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done();
}
personDao.deleteOne(1, callback);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment