@@ -15,9 +15,6 @@ const Util = {
1515 AccountConfirmation : require ( "./util/accountConfirmation.test.util" ) ,
1616 ResetPassword : require ( "./util/resetPassword.test.util.js" )
1717} ;
18- const Constants = {
19- Role : require ( "../constants/role.constant" ) ,
20- } ;
2118const logger = require ( "../services/logger.service" ) ;
2219
2320//make sure that we are connected to the database
@@ -53,56 +50,17 @@ afterEach(function (done) {
5350 } ) ;
5451} ) ;
5552async function storeAll ( ) {
56- await Util . Account . storeAll ( Util . Account . hackerAccounts . stored . team ) ;
57- await Util . Account . storeAll ( Util . Account . hackerAccounts . stored . noTeam ) ;
58- await Util . Account . storeAll ( Util . Account . volunteerAccounts . stored ) ;
59- await Util . Account . storeAll ( Util . Account . staffAccounts . stored ) ;
60- await Util . Account . storeAll ( Util . Account . sponsorT1Accounts . stored ) ;
61- await Util . Account . storeAll ( Util . Account . sponsorT2Accounts . stored ) ;
62- await Util . Account . storeAll ( Util . Account . sponsorT3Accounts . stored ) ;
63- await Util . Account . storeAll ( Util . Account . sponsorT4Accounts . stored ) ;
64- await Util . Account . storeAll ( Util . Account . sponsorT5Accounts . stored ) ;
65- await Util . Account . storeAll ( Util . Account . unlinkedAccounts . stored ) ;
66-
67- await Util . Account . storeAll ( Util . Account . hackerAccounts . new ) ;
68- await Util . Account . storeAll ( Util . Account . volunteerAccounts . new ) ;
69- await Util . Account . storeAll ( Util . Account . sponsorT1Accounts . new ) ;
70- await Util . Account . storeAll ( Util . Account . sponsorT2Accounts . new ) ;
71- await Util . Account . storeAll ( Util . Account . sponsorT3Accounts . new ) ;
72- await Util . Account . storeAll ( Util . Account . sponsorT4Accounts . new ) ;
73- await Util . Account . storeAll ( Util . Account . sponsorT5Accounts . new ) ;
74-
75- await Util . Account . storeAll ( Util . Account . extraAccounts ) ;
76-
77- await Util . Hacker . storeAll ( Util . Hacker . Hackers ) ;
78- await Util . Sponsor . storeAll ( Util . Sponsor . Sponsors ) ;
79- await Util . Team . storeAll ( Util . Team . Teams ) ;
80- await Util . Staff . storeAll ( Util . Staff . Staffs ) ;
81- await Util . AccountConfirmation . storeAll ( Util . AccountConfirmation . AccountConfirmationTokens ) ;
82- await Util . ResetPassword . storeAll ( Util . ResetPassword . ResetPasswords ) ;
83- await Util . Bus . storeAll ( Util . Bus . Busses ) ;
84- await Util . Volunteer . storeAll ( Util . Volunteer . Volunteers ) ;
85- await Util . Role . storeAll ( Constants . Role . allRolesArray ) ;
86-
87- await Util . RoleBinding . storeAll ( Util . RoleBinding . TeamHackerRB ) ;
88- await Util . RoleBinding . storeAll ( Util . RoleBinding . NoTeamHackerRB ) ;
89- await Util . RoleBinding . storeAll ( Util . RoleBinding . VolunteerRB ) ;
90- await Util . RoleBinding . storeAll ( Util . RoleBinding . StaffRB ) ;
91- await Util . RoleBinding . storeAll ( Util . RoleBinding . SponsorT1RB ) ;
92- await Util . RoleBinding . storeAll ( Util . RoleBinding . SponsorT2RB ) ;
93- await Util . RoleBinding . storeAll ( Util . RoleBinding . SponsorT3RB ) ;
94- await Util . RoleBinding . storeAll ( Util . RoleBinding . SponsorT4RB ) ;
95- await Util . RoleBinding . storeAll ( Util . RoleBinding . SponsorT5RB ) ;
96-
97- await Util . RoleBinding . storeAll ( Util . RoleBinding . newHackerRB ) ;
98- await Util . RoleBinding . storeAll ( Util . RoleBinding . newVolunteerRB ) ;
99- await Util . RoleBinding . storeAll ( Util . RoleBinding . newSponsorT1RB ) ;
100- await Util . RoleBinding . storeAll ( Util . RoleBinding . newSponsorT2RB ) ;
101- await Util . RoleBinding . storeAll ( Util . RoleBinding . newSponsorT3RB ) ;
102- await Util . RoleBinding . storeAll ( Util . RoleBinding . newSponsorT4RB ) ;
103- await Util . RoleBinding . storeAll ( Util . RoleBinding . newSponsorT5RB ) ;
104-
105- await Util . RoleBinding . storeAll ( Util . RoleBinding . unconfirmedAccountRB ) ;
53+ await Util . Account . storeAll ( ) ;
54+ await Util . Hacker . storeAll ( ) ;
55+ await Util . Sponsor . storeAll ( ) ;
56+ await Util . Team . storeAll ( ) ;
57+ await Util . Staff . storeAll ( ) ;
58+ await Util . AccountConfirmation . storeAll ( ) ;
59+ await Util . ResetPassword . storeAll ( ) ;
60+ await Util . Bus . storeAll ( ) ;
61+ await Util . Volunteer . storeAll ( ) ;
62+ await Util . Role . storeAll ( ) ;
63+ await Util . RoleBinding . storeAll ( ) ;
10664}
10765
10866async function dropAll ( ) {
0 commit comments