Skip to content

Commit 474c22e

Browse files
authored
tests(i18n): update canonical locale test for node 12.6 (GoogleChrome#9396)
1 parent e3efee0 commit 474c22e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ branches:
66
matrix:
77
include:
88
- node_js: "10"
9-
- node_js: "11"
9+
- node_js: "12"
1010
if: head_branch IS blank AND branch = master
1111
dist: trusty
1212
cache:

lighthouse-core/test/lib/i18n/locales-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ describe('locales', () => {
1818
const deprecatedCodes = {
1919
in: 'id',
2020
iw: 'he',
21+
mo: 'ro',
2122
};
2223

2324
for (const locale of Object.keys(locales)) {
2425
const canonicalLocale = Intl.getCanonicalLocales(locale)[0];
2526
const substitute = deprecatedCodes[locale];
2627
assert.ok(locale === canonicalLocale || substitute === canonicalLocale,
27-
`locale code '${locale}' not canonical`);
28+
`locale code '${locale}' not canonical ('${canonicalLocale}' found instead)`);
2829
}
2930

3031
// Deprecation subsitutes should be removed from the test if no longer used.

0 commit comments

Comments
 (0)