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

fixes

parent 98f03481
No related branches found
No related tags found
No related merge requests found
Pipeline #22763 failed
...@@ -90,7 +90,7 @@ test("delete person from db", done => { ...@@ -90,7 +90,7 @@ test("delete person from db", done => {
personDao.deleteOne({id: 1}, callback); personDao.deleteOne({id: 1}, callback);
}); });
test("update person in db", done => { test("Update person with id from db", done => {
function callback(status, data) { function callback(status, data) {
console.log( console.log(
"Test callback: status=" + status + ", data=" + JSON.stringify(data) "Test callback: status=" + status + ", data=" + JSON.stringify(data)
...@@ -99,8 +99,6 @@ test("update person in db", done => { ...@@ -99,8 +99,6 @@ test("update person in db", done => {
done(); done();
} }
personDao.updateOne( personDao.updateOne({navn:"Test", id:1}, callback);
{navn: "Kåre Heia", alder: 100, adresse: "Apalveien 11", id: 1 },
callback
);
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment