Skip to content
Snippets Groups Projects
Commit e3f8cb60 authored by Ådne Eide Stavseng's avatar Ådne Eide Stavseng
Browse files

fixed test

parent d332f956
Branches
No related tags found
No related merge requests found
Pipeline #22685 passed
......@@ -76,7 +76,7 @@ test("get all persons from db", done => {
test("update one person in db", done => {
const id = 1;
const navn = 'Jan-Marius';
const navn = 'Hei Sveisen';
const alder = 27;
const adresse = 'Lerkendal';
......@@ -96,7 +96,7 @@ test("update one person in db", done => {
test("delete person from db", done => {
personDao.getAll((status, data) => {
personDao.deleteOne(12, (status, data2) => {
personDao.deleteOne(16, (status, data2) => {
expect(data2.affectedRows).toBe(1);
personDao.getAll((status, data3) => {
expect(data3.length + 1 === data.length).toBe(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment