Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 494 Bytes

File metadata and controls

18 lines (9 loc) · 494 Bytes

Steps to run the code:

-Clone this repo

-On the command line, go to the folder of the downloaded repo.

-Install the unit test library global to use the client: "npm install -g qunitjs"

-Run the test.js via "qunit test.js"

Structure:

pricingRules.js : Contains the price for each product and special/discount information

ShoppingCart.js : Shopping cart object that allows to add products to the cart.

test.js : Unit test for each scenario usin QUnit.