Skip to content
Snippets Groups Projects
Commit a235e364 authored by Herman Ryen Martinsen's avatar Herman Ryen Martinsen
Browse files

Fiksa feil i testene

parent fac8f167
No related branches found
No related tags found
No related merge requests found
Pipeline #22875 passed
......@@ -83,7 +83,7 @@ test("update a person in the db", done => {
console.log(
"Test callback: status=" + status + ", data=" + JSON.stringify(data)
);
expect(data[0].navn).toBe("Test");
expect(data.changedRows).toBeGreaterThanOrEqual(1);
done();
}
......@@ -97,7 +97,7 @@ test("remove a person from db", done => {
console.log(
"Test callback: status=" + status + ", data=" + JSON.stringify(data)
);
expect(data.length).toBe(1);
expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done();
}
......
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