Skip to content

Commit 7a10de8

Browse files
committed
[test] Avoid hours around DST
1 parent e968092 commit 7a10de8

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/test/locale/gu.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,36 +313,36 @@ test('fromNow', function (assert) {
313313
});
314314

315315
test('calendar day', function (assert) {
316-
var a = moment().hours(2).minutes(0).seconds(0);
316+
var a = moment().hours(12).minutes(0).seconds(0);
317317

318318
assert.equal(
319319
moment(a).calendar(),
320-
'આજ રાત ૨:૦૦ વાગ્યે',
320+
'આજ બપોર ૧૨:૦૦ વાગ્યે',
321321
'today at the same time'
322322
);
323323
assert.equal(
324324
moment(a).add({ m: 25 }).calendar(),
325-
'આજ રાત ૨:૨૫ વાગ્યે',
325+
'આજ બપોર ૧૨:૨૫ વાગ્યે',
326326
'Now plus 25 min'
327327
);
328328
assert.equal(
329329
moment(a).add({ h: 3 }).calendar(),
330-
'આજ સવાર ૫:૦૦ વાગ્યે',
330+
'આજ બપોર ૩:૦૦ વાગ્યે',
331331
'Now plus 3 hour'
332332
);
333333
assert.equal(
334334
moment(a).add({ d: 1 }).calendar(),
335-
'કાલે રાત ૨:૦૦ વાગ્યે',
335+
'કાલે બપોર ૧૨:૦૦ વાગ્યે',
336336
'tomorrow at the same time'
337337
);
338338
assert.equal(
339339
moment(a).subtract({ h: 1 }).calendar(),
340-
'આજ રાત ૧:૦૦ વાગ્યે',
340+
'આજ બપોર ૧૧:૦૦ વાગ્યે',
341341
'Now minus 1 hour'
342342
);
343343
assert.equal(
344344
moment(a).subtract({ d: 1 }).calendar(),
345-
'ગઇકાલે રાત ૨:૦૦ વાગ્યે',
345+
'ગઇકાલે બપોર ૧૨:૦૦ વાગ્યે',
346346
'yesterday at the same time'
347347
);
348348
});

src/test/locale/x-pseudo.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,36 +312,36 @@ test('fromNow', function (assert) {
312312
});
313313

314314
test('calendar day', function (assert) {
315-
var a = moment().hours(2).minutes(0).seconds(0);
315+
var a = moment().hours(12).minutes(0).seconds(0);
316316

317317
assert.equal(
318318
moment(a).calendar(),
319-
'T~ódá~ý át 02:00',
319+
'T~ódá~ý át 12:00',
320320
'today at the same time'
321321
);
322322
assert.equal(
323323
moment(a).add({ m: 25 }).calendar(),
324-
'T~ódá~ý át 02:25',
324+
'T~ódá~ý át 12:25',
325325
'Now plus 25 min'
326326
);
327327
assert.equal(
328328
moment(a).add({ h: 1 }).calendar(),
329-
'T~ódá~ý át 03:00',
329+
'T~ódá~ý át 13:00',
330330
'Now plus 1 hour'
331331
);
332332
assert.equal(
333333
moment(a).add({ d: 1 }).calendar(),
334-
'T~ómó~rró~w át 02:00',
334+
'T~ómó~rró~w át 12:00',
335335
'tomorrow at the same time'
336336
);
337337
assert.equal(
338338
moment(a).subtract({ h: 1 }).calendar(),
339-
'T~ódá~ý át 01:00',
339+
'T~ódá~ý át 11:00',
340340
'Now minus 1 hour'
341341
);
342342
assert.equal(
343343
moment(a).subtract({ d: 1 }).calendar(),
344-
'Ý~ést~érdá~ý át 02:00',
344+
'Ý~ést~érdá~ý át 12:00',
345345
'yesterday at the same time'
346346
);
347347
});

0 commit comments

Comments
 (0)