Skip to content

Instantly share code, notes, and snippets.

@marcelblijleven
Last active October 11, 2019 11:11
Show Gist options
  • Save marcelblijleven/fde1bd7faf63a3ec0813aad5a2051eae to your computer and use it in GitHub Desktop.
Save marcelblijleven/fde1bd7faf63a3ec0813aad5a2051eae to your computer and use it in GitHub Desktop.
Users
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