Skip to content
Snippets Groups Projects
Commit 036e4efd authored by Jonas Kristoffersen's avatar Jonas Kristoffersen
Browse files

Test suksess!

parent 70da8422
No related branches found
No related tags found
No related merge requests found
Pipeline #23020 passed
...@@ -112,7 +112,7 @@ test("Update one person in db", done => { ...@@ -112,7 +112,7 @@ test("Update one person in db", done => {
personDao.updateOne(1, { navn: "Oppdatert Nilsen", alder: 99, adresse: "Gata 3"}, callback); personDao.updateOne(1, { navn: "Oppdatert Nilsen", alder: 99, adresse: "Gata 3"}, callback);
}); });
test("dellete person from db", done => { test("delete person 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)
...@@ -120,5 +120,5 @@ test("dellete person from db", done => { ...@@ -120,5 +120,5 @@ test("dellete person from db", done => {
expect(data.affectedRows).toBeGreaterThanOrEqual(1); expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done(); done();
} }
personDao.deleteOne(0, callback); personDao.deleteOne(1, callback);
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment