mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
fix(tests): linting & more expects
Also one more tweak for invite validation responsiveness
This commit is contained in:
@@ -50,7 +50,7 @@ describe('GET /challenges/:challengeId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: groupLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -116,7 +116,7 @@ describe('GET /challenges/:challengeId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: challengeLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -150,7 +150,7 @@ describe('GET /challenges/:challengeId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: challengeLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -206,7 +206,7 @@ describe('GET /challenges/:challengeId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: challengeLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -240,7 +240,7 @@ describe('GET /challenges/:challengeId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: challengeLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
|
||||
@@ -63,7 +63,7 @@ describe('GET /challenges/:challengeId/members', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: groupLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -84,7 +84,7 @@ describe('GET /challenges/:challengeId/members', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: leader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -107,7 +107,7 @@ describe('GET /challenges/:challengeId/members', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: anotherUser.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
|
||||
@@ -81,7 +81,7 @@ describe('GET /challenges/:challengeId/members/:memberId', () => {
|
||||
await groupLeader.post(`/tasks/challenge/${challenge._id}`, [{type: 'habit', text: taskText}]);
|
||||
|
||||
let memberProgress = await user.get(`/challenges/${challenge._id}/members/${groupLeader._id}`);
|
||||
expect(memberProgress).to.have.all.keys(['_id', 'id', 'profile', 'tasks']);
|
||||
expect(memberProgress).to.have.all.keys(['_id', 'auth', 'flags', 'id', 'profile', 'tasks']);
|
||||
expect(memberProgress.profile).to.have.all.keys(['name']);
|
||||
expect(memberProgress.tasks.length).to.equal(1);
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -57,7 +57,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -77,7 +77,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -92,7 +92,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -160,7 +160,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -175,7 +175,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -286,7 +286,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -301,7 +301,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -321,7 +321,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -336,7 +336,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -371,7 +371,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -386,7 +386,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -406,7 +406,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -421,7 +421,7 @@ describe('GET challenges/groups/:groupId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
|
||||
@@ -43,7 +43,7 @@ describe('GET challenges/user', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -73,7 +73,7 @@ describe('GET challenges/user', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -98,7 +98,7 @@ describe('GET challenges/user', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -128,7 +128,7 @@ describe('GET challenges/user', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
@@ -153,7 +153,7 @@ describe('GET challenges/user', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: user.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
|
||||
@@ -82,7 +82,7 @@ describe('POST /challenges/:challengeId/join', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: groupLeader.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
|
||||
@@ -82,7 +82,7 @@ describe('PUT /challenges/:challengeId', () => {
|
||||
auth: {
|
||||
local: {
|
||||
username: member.auth.local.username,
|
||||
}
|
||||
},
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
|
||||
Reference in New Issue
Block a user