mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-15 10:42:23 +00:00
fix(tests): avoid mystery pollution in challenges
This commit is contained in:
parent
3ad31c7cd0
commit
14518b8213
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import {
|
|||
generateUser,
|
||||
generateChallenge,
|
||||
createAndPopulateGroup,
|
||||
resetHabiticaDB,
|
||||
} from '../../../../helpers/api-integration/v3';
|
||||
import { TAVERN_ID } from '../../../../../website/common/script/constants';
|
||||
|
||||
|
|
@ -11,6 +12,8 @@ describe('GET challenges/user', () => {
|
|||
let groupPlan; let userData; let groupData; let tavern; let tavernData;
|
||||
|
||||
before(async () => {
|
||||
await resetHabiticaDB();
|
||||
|
||||
const { group, groupLeader, members } = await createAndPopulateGroup({
|
||||
groupDetails: {
|
||||
name: 'TestGuild',
|
||||
|
|
|
|||
Loading…
Reference in a new issue