fix(tests): quest block

This commit is contained in:
SabreCat 2023-07-28 14:27:36 -05:00
parent 330c3e1bf6
commit f75a4f6982
6 changed files with 6 additions and 0 deletions

View file

@ -53,6 +53,7 @@ describe('POST /groups/:groupId/quests/accept', () => {
it('does not accept quest for a guild', async () => {
const { group: guild, groupLeader: guildLeader } = await createAndPopulateGroup({
groupDetails: { type: 'guild', privacy: 'private' },
upgradeToGroupPlan: true,
});
await expect(guildLeader.post(`/groups/${guild._id}/quests/accept`))

View file

@ -43,6 +43,7 @@ describe('POST /groups/:groupId/quests/force-start', () => {
it('does not force start quest for a guild', async () => {
const { group: guild, groupLeader: guildLeader } = await createAndPopulateGroup({
groupDetails: { type: 'guild', privacy: 'private' },
upgradeToGroupPlan: true,
});
await expect(guildLeader.post(`/groups/${guild._id}/quests/force-start`))

View file

@ -54,6 +54,7 @@ describe('POST /groups/:groupId/quests/invite/:questKey', () => {
const { group } = await createAndPopulateGroup({
groupDetails: { type: 'guild', privacy: 'public' },
members: 1,
upgradeToGroupPlan: true,
});
const alternateGroup = group;

View file

@ -52,6 +52,7 @@ describe('POST /groups/:groupId/quests/abort', () => {
it('returns an error when group is a guild', async () => {
const { group: guild, groupLeader: guildLeader } = await createAndPopulateGroup({
groupDetails: { type: 'guild', privacy: 'private' },
upgradeToGroupPlan: true,
});
await expect(guildLeader.post(`/groups/${guild._id}/quests/abort`))

View file

@ -52,6 +52,7 @@ describe('POST /groups/:groupId/quests/cancel', () => {
it('returns an error when group is a guild', async () => {
const { group: guild, groupLeader: guildLeader } = await createAndPopulateGroup({
groupDetails: { type: 'guild', privacy: 'private' },
upgradeToGroupPlan: true,
});
await expect(guildLeader.post(`/groups/${guild._id}/quests/cancel`))

View file

@ -51,6 +51,7 @@ describe('POST /groups/:groupId/quests/leave', () => {
it('returns an error when group is a guild', async () => {
const { group: guild, groupLeader: guildLeader } = await createAndPopulateGroup({
groupDetails: { type: 'guild', privacy: 'private' },
upgradeToGroupPlan: true,
});
await expect(guildLeader.post(`/groups/${guild._id}/quests/leave`))