mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
robust date filter
This commit is contained in:
@@ -51,6 +51,9 @@ describe('filters', function() {
|
||||
it('should create a new Date when given "now"', function() {
|
||||
return test('{{ "now" | date: "%Y"}}', (new Date).getFullYear().toString());
|
||||
});
|
||||
it('should render as empty string when invalid', function() {
|
||||
return test('{{ "" | date: "%Y"}}', "");
|
||||
});
|
||||
});
|
||||
|
||||
describe('default', function() {
|
||||
|
||||
Reference in New Issue
Block a user