Skip to content

Commit

Permalink
add test reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Aug 5, 2017
1 parent 0ccc1bc commit aefcca3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ describe('error', function () {
console.log(result);
assert.equal(result, true);
});
it('reference error, should be return true', function () {
var result = be.error(new ReferenceError('aaaaaa'));
console.log(result);
assert.equal(result, true);
});
it('should be return false', function () {
var result = be.error({});
console.log(result);
Expand Down

0 comments on commit aefcca3

Please sign in to comment.