Skip to content

Commit

Permalink
add test if other block is not valid block obj
Browse files Browse the repository at this point in the history
  • Loading branch information
awidiyadewa committed Mar 27, 2018
1 parent 421ed8d commit cac81b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Block.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ describe('Block', () => {
const block = new Block(0, 0);
expect(block.equals(undefined)).to.be.false;
});

it('false if other block is different type', () => {
const block = new Block(0, 0);
const otherBlock = 'otherThing';
expect(block.equals(otherBlock)).to.be.false;
});
});

describe('#leftBlock', () => {
Expand Down

0 comments on commit cac81b9

Please sign in to comment.