mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
fix strftime test
This commit is contained in:
@@ -8,7 +8,10 @@ describe('util/strftime', function() {
|
|||||||
it('should format week by %U', function() {
|
it('should format week by %U', function() {
|
||||||
expect(t(now, '%U')).to.equal('43');
|
expect(t(now, '%U')).to.equal('43');
|
||||||
});
|
});
|
||||||
it('should format GMT string', function() {
|
it('should format locale date string', function() {
|
||||||
expect(t(now, '%Y-%m-%dT%H:%M:%S')).to.equal('2016-10-24T00:15:23');
|
expect(t(now, '%Y-%m-%d')).to.equal(now.toLocaleDateString());
|
||||||
|
});
|
||||||
|
it('should format locale date string', function() {
|
||||||
|
expect(t(now, '%H:%M:%S')).to.equal(now.toLocaleTimeString());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user