Always flush foldercache in tests

This commit is contained in:
zkldi
2022-04-13 23:33:53 +01:00
parent 7d47feb1e3
commit bc8bb2eecc
8 changed files with 11 additions and 11 deletions
@@ -65,8 +65,8 @@ t.test("#GetRelevantFolderGoals", (t) => {
await db.folders.insert(sp11folder);
await db.goals.insert(fakeFolderGoalDocument);
await db.goals.insert(notFolderGoalDocument);
await CreateFolderChartLookup(TestingIIDXFolderSP10);
await CreateFolderChartLookup(sp11folder);
await CreateFolderChartLookup(TestingIIDXFolderSP10, true);
await CreateFolderChartLookup(sp11folder, true);
});
t.test("Should correctly find the goals on this folder.", async (t) => {
+1 -1
View File
@@ -13,7 +13,7 @@ import { IIDX_LAMPS } from "tachi-common";
t.test("#EvaluateShowcaseStat", (t) => {
t.beforeEach(ResetDBState);
t.beforeEach(async () => await CreateFolderChartLookup(TestingIIDXFolderSP10));
t.beforeEach(async () => await CreateFolderChartLookup(TestingIIDXFolderSP10, true));
t.beforeEach(
async () => await db["personal-bests"].insert(deepmerge(TestingIIDXSPScorePB, {}))
);
+1 -1
View File
@@ -14,7 +14,7 @@ t.test("#EvalulateUsersStatsShowcase", (t) => {
t.beforeEach(async () => {
await db.folders.insert(TestingIIDXFolderSP10);
await CreateFolderChartLookup(TestingIIDXFolderSP10);
await CreateFolderChartLookup(TestingIIDXFolderSP10, true);
await db["game-settings"].remove({});
+1 -1
View File
@@ -226,7 +226,7 @@ t.test("#EvaluateGoalForUser", (t) => {
}),
]);
await CreateFolderChartLookup(TestingIIDXFolderSP10);
await CreateFolderChartLookup(TestingIIDXFolderSP10, true);
});
t.test("Should work if 511 is >= HARD CLEAR", async (t) => {