Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurits Rijk committed Apr 13, 2017
1 parent 2b9f82f commit e98fe1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ describe('Test the cat function', () => {
expect(s.isValid('::ingredient', [2, 13])).to.be.false;
});

it('should fail nr of values is not correct', () => {
expect(s.isValid('::ingredient', [2])).to.be.false;
});

it('should conform to a value', () => {
expect(s.conform('::ingredient', [2, ':teaspoon'])).to.eql({':quantity': 2, ':unit': ':teaspoon'});
});
Expand Down

0 comments on commit e98fe1a

Please sign in to comment.