mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
ok for real this time
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -120,6 +120,9 @@ t.test("#ResolveFolderToCharts", (t) => {
|
||||
deepmerge(Testing511SPA, {
|
||||
difficulty: "NORMAL",
|
||||
chartID: "FAKE_511_SPN",
|
||||
data: {
|
||||
arcChartID: "uniqueid",
|
||||
},
|
||||
}) as ChartDocument<"iidx:SP">
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user