mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
coverage
This commit is contained in:
@@ -36,5 +36,13 @@ describe('util/underscore', function() {
|
||||
expect(spy).to.have.been.calledOnce;
|
||||
expect(spy).to.have.been.calledWith('bar', 'foo', obj);
|
||||
});
|
||||
it('should break when returned false', function() {
|
||||
var spy = sinon.stub().returns(false);
|
||||
_.forOwn({
|
||||
'foo': 'foo',
|
||||
'bar': 'foo'
|
||||
}, spy);
|
||||
expect(spy).to.have.been.calledOnce;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user