Skip to content

Commit

Permalink
modify the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Dec 7, 2017
1 parent 09ee5fe commit 3a6afcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ npm install simplecalculatorjs
## Simple package usage

```bash
var calculatorjs = require('simplecalculatorjs');
var Calculator = calculatorjs.Calculator;
var SimpleMath = calculatorjs.SimpleMath;
const SimpleCalculatorJs = require('simplecalculatorjs');
var Calculator = SimpleCalculatorJs.Calculator;
var SimpleMath = SimpleCalculatorJs.SimpleMath;
var calculator = new Calculator(1, 2);
var simpleMath = new SimpleMath(2, 3);

Expand Down
8 changes: 8 additions & 0 deletions test/CalculatorTestMocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ describe('Calculator', function() {
});
});
});

describe('Calculator', function() {
describe('minus()', function() {
it('should return 3', function() {
assert.equal(-1, calculator.minus());
});
});
});

0 comments on commit 3a6afcd

Please sign in to comment.