add tests and instant update

This commit is contained in:
2023-04-09 17:25:26 +02:00
parent a297c86830
commit 85d293884b
10 changed files with 151 additions and 87 deletions
+5 -4
View File
@@ -124,9 +124,10 @@ describe('server', () => {
})
afterAll((done) => {
listenServer.close(() => {
db.deleteFrom('kill').where('attacker_id', '=', '0').orWhere('attacker_id', '=', '1').execute().then(() => {
db.destroy().then(() => { done() })
db.deleteFrom('kill').where('attacker_id', '=', '0').orWhere('attacker_id', '=', '1').execute().then(() => {
listenServer.close(async () => {
await db.destroy()
done()
})
})
})
})