tsotnekekelia / wad20-exam3-b

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WAD 2020 Resit Exam: Project B

Project setup

npm install

Run your tests

npm run test

Setup

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 repository https://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 and username on github is: cotne.kekelia@yahoo.com and tsotnekekelia

Tasks

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.

  1. Test that as many bets are displayed as items in the array that are passed to Bets component; One bet is encapsulated in a tr with class .bet [9 points]
  2. Test that .win and .lose classes are properly attached to the bet with the appropriate result [9 points]
  3. Test that final total is correctly calculated (sum of winnings - sum of amounts of lost bets) [7 points]

About


Languages

Language:Vue 61.4%Language:JavaScript 26.0%Language:HTML 12.6%