Skip to content
Snippets Groups Projects
Commit bb5113ef authored by Håkon Dalen Hestnes's avatar Håkon Dalen Hestnes
Browse files

Update persondao.test.js

parent c8c8a15f
No related branches found
No related tags found
No related merge requests found
Pipeline #22920 failed
......@@ -84,12 +84,14 @@ test("update person", done => {
console.log(
"Test callback: status=" + status + ", data=" + JSON.stringify(data)
);
expect(data.affectedRows).toBeGreaterThanOrEqual(1);
expect(data[0].navn).toBe("Håkon");
expect(data[0].adresse).toBe("Gata5");
expect(data[0]).alder.toBe(20);
done();
}
personDao.updateOne(
{ id: 0, navn: "Nils Nilsen", alder: 35, adresse: "Gata 3" },
{ id: 2, navn: "Håkon", alder: 20, adresse: "Gata 5" },
callback
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment