mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -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, "" }}',
|
||||
'Ground control to Ma')
|
||||
})
|
||||
it('should not truncate when short enough', function () {
|
||||
return test('{{ "12345" | truncate: 5 }}', '12345')
|
||||
})
|
||||
})
|
||||
|
||||
describe('truncatewords', function () {
|
||||
|
||||
Reference in New Issue
Block a user