Skip to content
Snippets Groups Projects
Commit e6246de2 authored by Albert Ohrem Larsen's avatar Albert Ohrem Larsen
Browse files

Update persondao.test.js

parent 962b0fb6
No related branches found
No related tags found
No related merge requests found
Pipeline #22564 failed
......@@ -81,7 +81,7 @@ test("Update person", done =>{
const navn = "Albert";
const alder = 23;
personDao.updateOne(id,{navn, adresse, alder}, (status, data)=>{
expect(data.affectedRows.toBe(1));
expect(data.affectedRows).toBe(1);
person.getOne(id, (status, data)=>{
expect(data[0].navn==navn).toBeTruthy();
expect(data[0].adresse==adresse).toBeTruthy();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment