Skip to content

Commit

Permalink
chore: more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
albshin committed Aug 8, 2024
1 parent 030b0a7 commit 568e40e
Showing 1 changed file with 11 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import {
import t from "tap";
import { dmf } from "test-utils/misc";
import ResetDBState from "test-utils/resets";
import {
TestingMaimaiDXChartConverter,
TestingMaimaiDXSongConverter,
} from "test-utils/test-data";
import { TestingMaimaiDXChartConverter, TestingMaimaiDXSongConverter } from "test-utils/test-data";
import type { MytMaimaiDxScore } from "./types";

const logger = CreateLogCtx(__filename);
Expand Down Expand Up @@ -50,12 +47,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
t.beforeEach(ResetDBState);

function convert(modifier: any = {}) {
return ConvertAPIMytMaimaiDx(
dmf(parsedScore, modifier),
{},
"api/myt-maimaidx",
logger,
);
return ConvertAPIMytMaimaiDx(dmf(parsedScore, modifier), {}, "api/myt-maimaidx", logger);
}

t.test("Should return a dryScore on valid input.", async (t) => {
Expand Down Expand Up @@ -102,7 +94,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
message: /Utage charts are not supported/u,
message: /Utage charts are not supported/u

Check failure on line 97 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Insert `,`
},

Check failure on line 98 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Delete `,`
);
t.end();
Expand All @@ -117,7 +109,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
message: /Can't process a score with unspecified difficulty/u,
message: /Can't process a score with unspecified difficulty/u

Check failure on line 112 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Insert `,`
},

Check failure on line 113 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Delete `,`
);
t.end();
Expand All @@ -132,7 +124,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "ALL PERFECT+" } },
dryScore: { scoreData: { lamp: "ALL PERFECT+" } }

Check failure on line 127 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Insert `,`
},

Check failure on line 128 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Delete `,`
);
t.hasStrict(
Expand All @@ -143,7 +135,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "ALL PERFECT" } },
dryScore: { scoreData: { lamp: "ALL PERFECT" } }

Check failure on line 138 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Insert `,`
},

Check failure on line 139 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Delete `,`
);
t.hasStrict(
Expand All @@ -154,7 +146,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "FULL COMBO+" } },
dryScore: { scoreData: { lamp: "FULL COMBO+" } }

Check failure on line 149 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Insert `,`
},

Check failure on line 150 in server/src/lib/score-import/import-types/api/myt-maimaidx/converter.test.ts

View workflow job for this annotation

GitHub Actions / test

Delete `,`
);
t.hasStrict(
Expand All @@ -165,7 +157,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "FULL COMBO" } },
dryScore: { scoreData: { lamp: "FULL COMBO" } }
},
);
t.hasStrict(
Expand All @@ -176,7 +168,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "CLEAR" } },
dryScore: { scoreData: { lamp: "CLEAR" } }
},
);
t.hasStrict(
Expand All @@ -187,7 +179,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "FAILED" } },
dryScore: { scoreData: { lamp: "FAILED" } }
},
);
t.hasStrict(
Expand All @@ -198,7 +190,7 @@ t.test("#ConvertAPIMytMaimaiDx", (t) => {
},
}),
{
dryScore: { scoreData: { lamp: "FAILED" } },
dryScore: { scoreData: { lamp: "FAILED" } }
},
);
t.end();
Expand Down

0 comments on commit 568e40e

Please sign in to comment.