mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
cancel quest: test response
This commit is contained in:
@@ -100,7 +100,7 @@ describe('POST /groups/:groupId/quests/cancel', () => {
|
|||||||
await leader.post(`/groups/${questingGroup._id}/quests/invite/${PET_QUEST}`);
|
await leader.post(`/groups/${questingGroup._id}/quests/invite/${PET_QUEST}`);
|
||||||
await partyMembers[0].post(`/groups/${questingGroup._id}/quests/accept`);
|
await partyMembers[0].post(`/groups/${questingGroup._id}/quests/accept`);
|
||||||
|
|
||||||
await leader.post(`/groups/${questingGroup._id}/quests/cancel`);
|
let res = await leader.post(`/groups/${questingGroup._id}/quests/cancel`);
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
leader.sync(),
|
leader.sync(),
|
||||||
@@ -124,6 +124,7 @@ describe('POST /groups/:groupId/quests/cancel', () => {
|
|||||||
expect(partyMembers[1].party.quest).eql(clean);
|
expect(partyMembers[1].party.quest).eql(clean);
|
||||||
expect(partyMembers[0].party.quest).eql(clean);
|
expect(partyMembers[0].party.quest).eql(clean);
|
||||||
|
|
||||||
|
expect(res).to.eql(questingGroup.quest);
|
||||||
expect(questingGroup.quest).to.eql({
|
expect(questingGroup.quest).to.eql({
|
||||||
key: null,
|
key: null,
|
||||||
active: false,
|
active: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user