Skip to content

Commit df5a8cf

Browse files
ben-allenptomato
authored andcommitted
squash me
1 parent 5608c8b commit df5a8cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/intl402/DateTimeFormat/prototype/resolvedOptions/hourCycle-default.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ locale: [en, fr, it, ja, zh, ko, ar, hi, en-u-hc-h24]
2727
let locales = ["en", "fr", "it", "ja", "ja-u-hc-h11", "zh", "ko", "ar", "hi", "en-u-hc-h24"];
2828

2929
locales.forEach(function(locale) {
30-
let hcDefault = new Intl.DateTimeFormat(locale, {hour: "numeric"}).resolvedOptions().hourCycle;
31-
if (hcDefault === "h11" || hcDefault === "h12"){
32-
assert.sameValue(new Intl.DateTimeFormat(locale, {hour: "numeric", hour12: true}).resolvedOptions().hourCycle, hcDefault);
30+
let hcDefault = new Intl.DateTimeFormat(locale, { hour: "numeric"}).resolvedOptions().hourCycle;
31+
if (hcDefault === "h11" || hcDefault === "h12") {
32+
assert.sameValue(new Intl.DateTimeFormat(locale, { hour: "numeric", hour12: true}).resolvedOptions().hourCycle, hcDefault);
3333

3434
// no locale has "h24" as a default. see https://github.com/tc39/ecma402/pull/758#issue-1622377292
35-
assert.sameValue(new Intl.DateTimeFormat(locale, {hour: "numeric", hour12: false}).resolvedOptions().hourCycle, "h23");
35+
assert.sameValue(new Intl.DateTimeFormat(locale, { hour: "numeric", hour12: false}).resolvedOptions().hourCycle, "h23");
3636
}
3737

3838
// however, "h24" can be set via locale extension.
3939
if (hcDefault === "h23" || hcDefault === "h24") {
40-
assert.sameValue(new Intl.DateTimeFormat(locale, {hour: "numeric", hour12: false}).resolvedOptions().hourCycle, hcDefault);
40+
assert.sameValue(new Intl.DateTimeFormat(locale, { hour: "numeric", hour12: false}).resolvedOptions().hourCycle, hcDefault);
4141
}
4242

4343

44-
let hcHour12 = new Intl.DateTimeFormat(locale, {hour: "numeric", hour12: true}).resolvedOptions().hourCycle;
44+
let hcHour12 = new Intl.DateTimeFormat(locale, { hour: "numeric", hour12: true}).resolvedOptions().hourCycle;
4545
assert(hcHour12 === "h11" || hcHour12 === "h12", "Expected `hourCycle`: " + hcHour12 + " to be in [\"h11\", \"h12\"]");
4646
});

0 commit comments

Comments
 (0)