diff --git a/dao/persondao.test.js b/dao/persondao.test.js
index ce08284754f6532d0e5699b0abf86b9572370fe8..805ab05666f5d8feb1575a48430d6f5dba95ce10 100644
--- a/dao/persondao.test.js
+++ b/dao/persondao.test.js
@@ -75,24 +75,25 @@ test("get all persons from db", done => {
     done();
   }
 
-  test("update person from db", done => {
-    function callback(status, data) {
-      personDao.getOne(2, getCallback);
-    }
-
-    function getCallback(status, data) {
-      console.log(
-        "Test callback: status= " + status + ", data=" +JSON.stringify(data)
-      );
-      expect(data.length).toBe(1);
-      expect(data[0].alder).toBe(23);
-      done();
-    }
-    personDao.updateOne(
-      2,
-      {navn: "Hei Heisen", adresse: "Gata 2", alder: "23"},
-      callback
-    );
-  })
   personDao.getAll(callback);
 });
+
+test("update person from db", done => {
+  function callback(status, data) {
+    personDao.getOne(2, getCallback);
+  }
+
+  function getCallback(status, data) {
+    console.log(
+      "Test callback: status= " + status + ", data=" +JSON.stringify(data)
+    );
+    expect(data.length).toBe(1);
+    expect(data[0].alder).toBe(23);
+    done();
+  }
+  personDao.updateOne(
+    2,
+    {navn: "Hei Heisen", adresse: "Gata 2", alder: "23"},
+    callback
+  );
+})
\ No newline at end of file