Skip to content

Commit

Permalink
testing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusbalbi committed Aug 25, 2020
1 parent aa91ed2 commit 935bba7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"decorator": "ts-node ./src/decorator/starbuzz",
"chain": "ts-node ./src/chain-of-responsability/discounts-calculator/",
"strategy": "ts-node ./src/strategy/ducks-simulator/",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --ext .ts"
Expand Down
10 changes: 10 additions & 0 deletions src/chain-of-responsability/discounts-calculator/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Budged from "./Budget";

const budget = new Budged();

budget
.add({ code: "A1", name: "Celular Samsung", price: 1200.0 })
.add({ code: "B335", name: "Monitor LG Ultrawide 29", price: 1500.0 })
.add({ code: "V887", name: "Suporte Monitor Top", price: 300.0 });


0 comments on commit 935bba7

Please sign in to comment.