mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
fix strftime test
This commit is contained in:
@@ -9,11 +9,13 @@ describe('util/strftime', function() {
|
||||
expect(t(now, '%U')).to.equal('43');
|
||||
});
|
||||
it('should format locale date string', function() {
|
||||
var date = now.toLocaleDateString('zh-CN');
|
||||
expect(t(now, '%Y-%m-%d')).to.equal(date);
|
||||
var date = now.toLocaleDateString('en-US');
|
||||
expect(t(now, '%m/%d/%Y')).to.equal(date);
|
||||
});
|
||||
it('should format locale date string', function() {
|
||||
var time = now.toLocaleTimeString('zh-CN');
|
||||
var time = now.toLocaleTimeString({
|
||||
hour12: false
|
||||
});
|
||||
expect(t(now, '%H:%M:%S')).to.equal(time);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user