Fix test case prepare statements

This commit is contained in:
Nanobyte
2021-05-07 01:51:11 +02:00
parent 99a4ed9e84
commit 78a7f8a207
12 changed files with 130 additions and 143 deletions

View File

@@ -5,7 +5,7 @@ import {getHash} from '../../src/utils/getHash';
describe('getIsUserVIP', () => {
before((done: Done) => {
db.prepare("run", `INSERT INTO "vipUsers" ("userID") VALUES ('` + getHash("supertestman") + "')").then(done);
db.prepare("run", 'INSERT INTO "vipUsers" ("userID") VALUES (?)', [getHash("supertestman")]).then(done);
});
it('Should be able to get a 200', (done: Done) => {