Skip to content

Commit

Permalink
test: added test to avoid #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jukben committed Nov 11, 2019
1 parent 62c5d37 commit fba9e5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ it("2+2=4", () => {

it("correct implicit conversion into JS number", () => {
expect(+new Maffs(2)).toEqual(2);
})

});

it("2+2=4-1=3", () => {
const two = new Maffs(0).plus(2);
Expand All @@ -34,3 +33,7 @@ it("man's hot", () => {
"Value has to be number of QuickMaths instance"
);
});

it("calculate correctly with Maffs instance", () => {
expect(new Maffs(new Maffs("2")).is()).toBe(2);
});

0 comments on commit fba9e5c

Please sign in to comment.