mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
fix: Obscure undeleted monk props on test data
This commit is contained in:
+7
@@ -43,6 +43,10 @@ t.test("GET /api/v1/users/:userID/games/:game/:playtype/targets/goals", (t) => {
|
||||
|
||||
t.equal(res.statusCode, 200);
|
||||
|
||||
// due to poor design decisions, these props may be set anyway.
|
||||
delete HC511Goal._id;
|
||||
delete HC511UserGoal._id;
|
||||
|
||||
t.strictSame(res.body.body, {
|
||||
goals: [HC511Goal],
|
||||
goalSubs: [HC511UserGoal],
|
||||
@@ -664,6 +668,9 @@ t.test("GET /api/v1/users/:userID/games/:game/:playtype/targets/goals/:goalID",
|
||||
|
||||
t.equal(res.statusCode, 200);
|
||||
|
||||
delete HC511Goal._id;
|
||||
delete HC511UserGoal._id;
|
||||
|
||||
t.hasStrict(res.body.body, {
|
||||
goal: HC511Goal,
|
||||
goalSub: HC511UserGoal,
|
||||
|
||||
Reference in New Issue
Block a user