mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-29 07:05:13 -07:00
add test case for truncate
This commit is contained in:
@@ -297,6 +297,9 @@ describe('filters', function () {
|
|||||||
return test('{{ "Ground control to Major Tom." | truncate: 20, "" }}',
|
return test('{{ "Ground control to Major Tom." | truncate: 20, "" }}',
|
||||||
'Ground control to Ma')
|
'Ground control to Ma')
|
||||||
})
|
})
|
||||||
|
it('should not truncate when short enough', function () {
|
||||||
|
return test('{{ "12345" | truncate: 5 }}', '12345')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('truncatewords', function () {
|
describe('truncatewords', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user