mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
test: add regression tests for players endpoint
This commit is contained in:
@@ -22,6 +22,7 @@ import type {
|
||||
PublicUserDocument,
|
||||
ScoreDocument,
|
||||
UGPTSettings,
|
||||
UserGameStats,
|
||||
} from "tachi-common";
|
||||
|
||||
/**
|
||||
@@ -103,3 +104,16 @@ export function mkFakeGoal(modifant: Partial<GoalDocument> = {}) {
|
||||
export function mkFakeGoalSub(modifant: Partial<GoalSubscriptionDocument> = {}) {
|
||||
return dmf(HC511UserGoal, modifant);
|
||||
}
|
||||
|
||||
export function mkFakeGameStats(userID: integer, modifant: Partial<UserGameStats> = {}) {
|
||||
return dmf(
|
||||
{
|
||||
userID,
|
||||
game: "iidx",
|
||||
playtype: "SP",
|
||||
classes: {},
|
||||
ratings: {},
|
||||
},
|
||||
modifant
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user