mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
render undefined to ''
This commit is contained in:
@@ -32,6 +32,9 @@ describe('liquid', function() {
|
||||
it('should output array', function() {
|
||||
engine.parseAndRender('{{arr}}', ctx).should.equal('[-2,"a"]');
|
||||
});
|
||||
it('should output undefined to empty', function() {
|
||||
engine.parseAndRender('foo{{zzz}}bar', ctx).should.equal('foobar');
|
||||
});
|
||||
it('should parse html', function() {
|
||||
(function() {
|
||||
engine.parse('{{obj}}');
|
||||
|
||||
Reference in New Issue
Block a user