mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
feat: support function calls, closes #222
This commit is contained in:
@@ -9,9 +9,6 @@ describe('filters/html', function () {
|
||||
it('should escape normal string', function () {
|
||||
return test('{{ "Tetsuro Takara" | escape }}', 'Tetsuro Takara')
|
||||
})
|
||||
it('should escape function', function () {
|
||||
return test('{{ func | escape }}', { func: function () {} }, 'function () { }')
|
||||
})
|
||||
it('should escape undefined', function () {
|
||||
return test('{{ nonExistent.value | escape }}', '')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user