Skip to content

Commit

Permalink
split up getMessage() tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jurko-gospodnetic committed Dec 14, 2015
1 parent 068dc2b commit f73d026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,11 @@ describe('utilities', function () {
var obj = {};
_.flag(obj, 'message', 'foo');
expect(_.getMessage(obj, [])).to.contain('foo');
});
});

it('getMessage passed message as function', function () {
chai.use(function (_chai, _) {
var obj = {};
var msg = function() { return "expected a to eql b"; }
var negateMsg = function() { return "expected a not to eql b"; }
Expand Down

0 comments on commit f73d026

Please sign in to comment.