Last active
October 11, 2019 11:11
-
-
Save marcelblijleven/fde1bd7faf63a3ec0813aad5a2051eae to your computer and use it in GitHub Desktop.
Users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User { | |
email:string | |
password:string | |
hasLoyaltyCard: boolean | |
constructor(email:string, password:string, hasLoyaltyCard?:boolean) { | |
this.email = email | |
this.password = password | |
this.hasLoyaltyCard = !!hasLoyaltyCard | |
} | |
} | |
// Getting the password from an environment variable | |
const userPassword = process.env.CUSTOMER_PASSWORD || '' | |
const users = [ | |
new User('[email protected]', userPassword, false), | |
new User('[email protected]', userPassword, false), | |
new User('[email protected]', userPassword, false), | |
new User('[email protected]', userPassword, true), | |
new User('[email protected]', userPassword, true), | |
new User('[email protected]', userPassword, true) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment