Skip to content
Snippets Groups Projects
Commit b3ba90b6 authored by Bjørnar Østtveit's avatar Bjørnar Østtveit
Browse files

update db info

parent f8e8e938
No related branches found
No related tags found
Loading
Pipeline #23002 passed
......@@ -6,10 +6,10 @@ const runsqlfile = require("./runsqlfile.js");
// GitLab CI Pool
var pool = mysql.createPool({
connectionLimit: 1,
host: "mysql",
user: "root",
password: "secret",
database: "supertestdb",
host: "mysql.stud.iie.ntnu.no",
user: "bjornost",
password: "nvS3wCdX",
database: "bjornost",
debug: false,
multipleStatements: true
});
......@@ -86,7 +86,7 @@ test("Update a person", done =>{
expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done();
}
personDao.updateOne({navn: "Stian Ådnanes", alder:20, adresse: "Gate 4",id : 2},
personDao.updateOne({navn: "Bjørnar Østtveit", alder:19, adresse: "Gate ?",id : 2},
callback
);
});
......@@ -99,7 +99,7 @@ test("Delete a person", done =>{
expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done();
}
personDao.deleteOne({id: 100},
personDao.deleteOne({id: 1},
callback
);
});
......@@ -9,9 +9,9 @@ const PersonDao = require("./dao/persondao.js");
var pool = mysql.createPool({
connectionLimit: 2,
host: "mysql.stud.iie.ntnu.no",
user: "nilstesd",
password: "lqqWcMzq",
database: "nilstesd",
user: "bjornost",
password: "nvS3wCdX",
database: "bjornost",
debug: false
});
......
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