mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 07:09:57 +03:00
Always flush foldercache in tests
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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, {}))
|
||||
);
|
||||
|
||||
@@ -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({});
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user