mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 00:55:13 -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');
|
expect(t(now, '%U')).to.equal('43');
|
||||||
});
|
});
|
||||||
it('should format locale date string', function() {
|
it('should format locale date string', function() {
|
||||||
var date = now.toLocaleDateString('zh-CN');
|
var date = now.toLocaleDateString('en-US');
|
||||||
expect(t(now, '%Y-%m-%d')).to.equal(date);
|
expect(t(now, '%m/%d/%Y')).to.equal(date);
|
||||||
});
|
});
|
||||||
it('should format locale date string', function() {
|
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);
|
expect(t(now, '%H:%M:%S')).to.equal(time);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user