Skip to content
Snippets Groups Projects
Commit b9fe2301 authored by Sander Nicolausson's avatar Sander Nicolausson
Browse files

fixes

parent 7cd19223
No related branches found
No related tags found
No related merge requests found
Pipeline #22760 failed
......@@ -95,13 +95,12 @@ test("update person in db", done => {
console.log(
"Test callback: status=" + status + ", data=" + JSON.stringify(data)
);
expect(data[0].navn).toBe("Kåre Heia");
expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done();
}
personDao.updateOne(
{navn: "Kåre Heia", alder: 100, adresse: "Apalveien 11" },
0,
{navn: "Kåre Heia", alder: 100, adresse: "Apalveien 11", id: 2 },
callback
);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment