Skip to content
Snippets Groups Projects
Commit 69486eca authored by jorgstei's avatar jorgstei
Browse files

insertid

parent 611ff2fe
No related branches found
No related tags found
No related merge requests found
Pipeline #49741 failed
...@@ -92,7 +92,7 @@ test("update person from db", done => { ...@@ -92,7 +92,7 @@ test("update person from db", done => {
personDao.createOne( personDao.createOne(
{navn: "juns", alder: 60, adresse: "stuff"}, {navn: "juns", alder: 60, adresse: "stuff"},
(status, data) => { (status, data) => {
personDao.updateOne({id: 1, navn: "Jorgen Steig", alder: 20, adresse: "Lirkjudali 27"}, callback); personDao.updateOne({id: data.insertId, navn: "Jorgen Steig", alder: 20, adresse: "Lirkjudali 27"}, callback);
} }
) )
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment