ok for real this time

This commit is contained in:
zkldi
2021-06-24 20:41:10 +01:00
parent 7ab0e0b569
commit e9ce37cf5e
4 changed files with 11 additions and 1 deletions
@@ -426,6 +426,7 @@ t.test("#CalculateLampRating", (t) => {
});
t.test("TierlistData edge cases", async (t) => {
await db["tierlist-data"].remove({ chartID: Testing511SPA.chartID, key: "CLEAR" });
// mock document that implies 5.1.1. SPA is worth 11.9 to NC and 10.6 to HC.
await db["tierlist-data"].insert({
chartID: Testing511SPA.chartID,
@@ -60,7 +60,10 @@ t.test("#GetRelevantFolderGoals", (t) => {
t.beforeEach(async () => {
// @ts-expect-error garbage types
const sp11folder = deepmerge(TestingIIDXFolderSP10, { data: { level: "11" } });
const sp11folder = deepmerge(TestingIIDXFolderSP10, {
data: { level: "11" },
folderID: "foo",
});
await db.folders.insert(TestingIIDXFolderSP10);
await db.folders.insert(sp11folder);
await db.goals.insert(fakeFolderGoalDocument);
@@ -1,6 +1,7 @@
import t from "tap";
import mockApi from "../../../../../../../test-utils/mock-api";
import { GetGamePTConfig } from "tachi-common";
import { CloseAllConnections } from "../../../../../../../test-utils/close-connections";
t.test("GET /api/v1/games/:game/:playtype", (t) => {
t.test("Should return information about the game:playtype.", async (t) => {
@@ -23,3 +24,5 @@ t.test("GET /api/v1/games/:game/:playtype", (t) => {
t.end();
});
t.teardown(CloseAllConnections);
+3
View File
@@ -120,6 +120,9 @@ t.test("#ResolveFolderToCharts", (t) => {
deepmerge(Testing511SPA, {
difficulty: "NORMAL",
chartID: "FAKE_511_SPN",
data: {
arcChartID: "uniqueid",
},
}) as ChartDocument<"iidx:SP">
);