Skip to content
Snippets Groups Projects
Commit ace90013 authored by Name's avatar Name
Browse files

Fixed tests

parent 1d4ee627
No related branches found
No related tags found
No related merge requests found
Pipeline #49691 canceled
...@@ -86,9 +86,9 @@ test("set values of person in db", done => { ...@@ -86,9 +86,9 @@ test("set values of person in db", done => {
function callback(status, data) { function callback(status, data) {
console.log( console.log(
"Test callback: status=" + status + ", changed rows=" + affectedRows "Test callback: status=" + status + ", changed rows=" + data.changedRows
); );
expect(affectedRows).toBe(1); expect(data.changedRows).toBe(1);
done(); done();
} }
...@@ -101,9 +101,9 @@ test("set values of person in db", done => { ...@@ -101,9 +101,9 @@ test("set values of person in db", done => {
test("delete 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 + ", changed rows=" + affectedRows "Test callback: status=" + status + ", changed rows=" + data.affectedRows
); );
expect(affectedRows).toBe(1); expect(data.affectedRows).toBe(1);
done(); done();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment