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('postWarning', () => {
before(async () => {
await db.prepare("run", `INSERT INTO "vipUsers" ("userID") VALUES ('` + getHash("warning-vip") + "')");
await db.prepare("run", `INSERT INTO "vipUsers" ("userID") VALUES (?)`, [getHash("warning-vip")]);
});
it('Should be able to create warning if vip (exp 200)', (done: Done) => {