Skip to content

chulian1819/castro_julian_code_cart_test_amaysim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Code test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published