/shopping-cart

Simple JavaScript shopping cart scans individual items and gives discounts based on pricing rules.

Primary LanguageJavaScriptMIT LicenseMIT

#SHOPPING CART

A simple JavaScript shopping cart that applies some deals to the total price via set pricing rules.

Written with a test driven approach, it utilises mocha and chai.

##Prerequisites Node.js to run the main shopping script. npm for testing.

##Instructions: Run with: $node shopping.js

##Testing: Install mocha and chai with: $npm install Test with: $npm run test