mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
fix strftime test
This commit is contained in:
@@ -13,7 +13,7 @@ describe('util/strftime', function() {
|
|||||||
expect(t(now, '%m/%d/%Y')).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({
|
var time = now.toLocaleTimeString('en-US', {
|
||||||
hour12: false
|
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