mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
unit test for _.echo
This commit is contained in:
@@ -53,4 +53,14 @@ describe('util/underscore', function() {
|
||||
expect(_.isArray("foo")).to.be.false;
|
||||
});
|
||||
});
|
||||
describe('.echo()', function(){
|
||||
it('should be transparent when called', function() {
|
||||
expect(_.echo('foo')('bar')).to.equal('bar');
|
||||
});
|
||||
it('should log the arguments', function() {
|
||||
var log = sinon.spy(console, 'log');
|
||||
_.echo('foo')('bar');
|
||||
expect(log).to.have.been.calledWith('[foo]', 'bar');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user