clean up t.throws/t.rejects

This commit is contained in:
zkldi
2021-06-26 01:36:39 +01:00
parent 0628266c3e
commit 3f8fa475d6
37 changed files with 142 additions and 139 deletions
+2
View File
@@ -14,8 +14,10 @@ const logger = CreateLogCtx(__filename);
const DATA_DIR = path.join(__dirname, "./mock-db");
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const CACHE: Record<string, any[]> = {};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async function ResetState(data: any[], collection: any) {
await collection.remove({});