Added intitial group leave tests

Fixed test readability, updated party test, and updated challenge update code when leaving group
Updated library, added group existance check, and reset full party
Updated syntax, added new userUnlinkChallenges, and added some initial testing for challenges
Added challenge tasks tests
Added try/catch to group remove, add more party tests, fixed broken challenge test, removed useless return value
Added public guild tests, added more tests to party, and abstracted remove invitations logic

Closes #6506
This commit is contained in:
Keith Holliday
2016-01-12 18:00:37 -06:00
committed by Blade Barringer
parent 66083f766c
commit ef6afaedb4
6 changed files with 280 additions and 88 deletions

View File

@@ -8,3 +8,11 @@ export { requester };
export { translate } from '../translate';
export { checkExistence, resetHabiticaDB } from '../mongo';
export * from './object-generators';
export async function sleep (seconds) {
let milliseconds = seconds * 1000;
return new Promise((resolve) => {
setTimeout(resolve, milliseconds);
});
}