@@ -48,7 +48,7 @@ function generateRandomValue(atr) {
4848 case "password" :
4949 return Math . random ( ) . toString ( 36 ) . substr ( 0 , 10 ) ;
5050 case "dietaryRestrictions" :
51- return Constants . SAMPLE_DIET_RESTRICTIONS [ Math . floor ( Math . random ( ) * Constants . SAMPLE_DIET_RESTRICTIONS . length ) ] ;
51+ return [ Constants . SAMPLE_DIET_RESTRICTIONS [ Math . floor ( Math . random ( ) * Constants . SAMPLE_DIET_RESTRICTIONS . length ) ] ] ;
5252 case "shirtSize" :
5353 return Constants . SHIRT_SIZES [ Math . floor ( Math . random ( ) * Constants . SHIRT_SIZES . length ) ] ;
5454 case "confirmed" :
@@ -96,11 +96,12 @@ function createNAccounts(n, acc = {}) {
9696
9797let hackerAccounts = {
9898 new : createNAccounts ( 10 , {
99- "accountType" : Constants . HACKER
99+ "accountType" : Constants . HACKER ,
100100 } ) ,
101101 stored : {
102102 team : createNAccounts ( 10 , {
103- "accountType" : Constants . HACKER
103+ "accountType" : Constants . HACKER ,
104+ "confirmed" : true ,
104105 } ) ,
105106 noTeam : createNAccounts ( 10 , {
106107 "accountType" : Constants . HACKER
@@ -131,7 +132,8 @@ let staffAccounts = {
131132
132133let sponsorT1Accounts = {
133134 new : createNAccounts ( 5 , {
134- "accountType" : Constants . SPONSOR_T1
135+ "accountType" : Constants . SPONSOR_T1 ,
136+ "confirmed" : false ,
135137 } ) ,
136138 stored : createNAccounts ( 5 , {
137139 "accountType" : Constants . SPONSOR_T1
@@ -206,7 +208,7 @@ const waitlistedHacker0 = {
206208 "firstName" : "abcd" ,
207209 "lastName" : "defg3" ,
208210 "pronoun" : "They/Them" ,
209- "email" : "abc.def7 @blahblah.com" ,
211+ "email" : "waitlisted1 @blahblah.com" ,
210212 "password" : "probsShouldBeHashed2" ,
211213 "dietaryRestrictions" : [ "vegetarian" ] ,
212214 "shirtSize" : "M" ,
@@ -222,7 +224,7 @@ const NonConfirmedAccount1 = {
222224 "firstName" : "LMAO" ,
223225 "lastName" : "ROFL" ,
224226 "pronoun" : "Ey/Em" ,
225- "email" : "abc.def6 @blahblah.com" ,
227+ "email" : "notconfirmed1 @blahblah.com" ,
226228 "password" : "probsShouldBeHashed5" ,
227229 "dietaryRestrictions" : [ "something1" , "something2" ] ,
228230 "shirtSize" : "XXL" ,
@@ -246,7 +248,8 @@ const NonConfirmedAccount2 = {
246248
247249const NonConfirmedAccount3 = createAccount ( {
248250 "confirmed" : false ,
249- "accountType" : Constants . HACKER
251+ "accountType" : Constants . HACKER ,
252+ "email" : "notconfirmed3@blahblah.com"
250253} ) ;
251254
252255const extraAccounts = [ waitlistedHacker0 , NonConfirmedAccount1 , NonConfirmedAccount2 , NonConfirmedAccount3 ] ;
0 commit comments