mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 11:28:13 +03:00
31 lines
1017 B
TypeScript
31 lines
1017 B
TypeScript
import fs from "fs";
|
|
import { ChartDocument } from "kamaitachi-common";
|
|
import path from "path";
|
|
import { DryScore } from "../types";
|
|
|
|
const file = (name: string) => path.join(__dirname, name);
|
|
|
|
const JSONFile = (name: string) => JSON.parse(fs.readFileSync(file(name), "utf-8"));
|
|
|
|
export const TestingIIDXSPDryScore = JSONFile(
|
|
"./test-data/kamaitachi/iidx-dryscore.json"
|
|
) as DryScore<"iidx", "SP", "iidx:SP">;
|
|
|
|
export const Testing511SPA = JSONFile("./test-data/kamaitachi/iidx-511spa.json") as ChartDocument<
|
|
"iidx",
|
|
"SP",
|
|
"iidx:SP"
|
|
>;
|
|
|
|
export const TestingDoraChart = JSONFile(
|
|
"./test-data/kamaitachi/gitadora-ithinkabtyou.json"
|
|
) as ChartDocument<"gitadora", "Dora", "gitadora:Dora">;
|
|
|
|
export const TestingSDVXSingleDryScore = JSONFile(
|
|
"./test-data/kamaitachi/sdvx-dryscore.json"
|
|
) as DryScore<"sdvx", "Single", "sdvx:Single">;
|
|
|
|
export const TestingGITADORADoraDryScore = JSONFile(
|
|
"./test-data/kamaitachi/gitadora-dryscore.json"
|
|
) as DryScore<"gitadora", "Dora", "gitadora:Dora">;
|