npm install
npm run test
You will need to import this repository to you GitHub account, to do that please follow these steps:
- Go to Github import page
- Note: you have to be logged in to your GitHub account
- In the first field
"Your old repository’s clone URL"
enter URL of this repositoryhttps://github.com/tsotnekekelia/wad20-exam3-b
- In the next field give it a name
- Make it Private
- And begin to import, it should take few seconds
- Add me as a collaborator to your new repository, click here
to learn how
- My
email
andusername
on github is:cotne.kekelia@yahoo.com
andtsotnekekelia
- My
Modify Bets.spec.js to test the functionality of Bets.vue component.
Note: you need to create and pass some test data to this component in the test file.
- Test that as many bets are displayed as items in the array that are passed to
Bets
component; One bet is encapsulated in atr
with class.bet
[9 points] - Test that
.win
and.lose
classes are properly attached to the bet with the appropriateresult
[9 points] - Test that final total is correctly calculated (sum of winnings - sum of amounts of lost bets) [7 points]