Payment tests refactor (#9695)

* Reorganized files, reduced function size, reduced duplication

* Refactored amazon tests organization

* Reduced duplication

* Reorganized paypal tests

* Reorganized stripe tests

* Fixed lint issues

* Fixed gem purchase expectations

* Added cloning so we don't modify the common block
This commit is contained in:
Keith Holliday
2017-12-14 09:59:45 -06:00
committed by GitHub
parent e7fd2b4c79
commit 54db84fddc
20 changed files with 2436 additions and 2359 deletions

View File

@@ -0,0 +1,7 @@
import { model as User } from '../../../../../../website/server/models/user';
export async function createNonLeaderGroupMember (group) {
let nonLeader = new User();
nonLeader.guilds.push(group._id);
return await nonLeader.save();
}