Skip to content
Snippets Groups Projects
Commit ecdb442c authored by Magnus Revheim Martinsen's avatar Magnus Revheim Martinsen
Browse files

updated test

parent d4718a42
Branches master
No related tags found
No related merge requests found
Pipeline #22968 passed
...@@ -85,6 +85,13 @@ test("update a persons data to db", done => { ...@@ -85,6 +85,13 @@ test("update a persons data to db", done => {
); );
expect(data.affectedRows).toBe(1); expect(data.affectedRows).toBe(1);
expect(data.changedRows).toBe(1); expect(data.changedRows).toBe(1);
personDao.getOne(1, callback2);
}
function callback2(status, data) {
console.log(
"Test callback: status=" + status + ", data=" + JSON.stringify(data)
);
expect(data[0].navn).toBe("per");
done(); done();
} }
personDao.updateOne( personDao.updateOne(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment