From 883a20dde93b1cc3fe5f6cd9ff48d16ed9dbf70b Mon Sep 17 00:00:00 2001 From: Brendan Kenny Date: Thu, 18 Jul 2019 12:07:29 -0700 Subject: [PATCH] tests(i18n): update canonical locale test for node 12.6 (#9396) --- .travis.yml | 2 +- lighthouse-core/test/lib/i18n/locales-test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a1aa6fe7c8d4..bb06f7155213 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ branches: matrix: include: - node_js: "10" - - node_js: "11" + - node_js: "12" if: head_branch IS blank AND branch = master dist: trusty cache: diff --git a/lighthouse-core/test/lib/i18n/locales-test.js b/lighthouse-core/test/lib/i18n/locales-test.js index eba944fa30cb..0dfab475117e 100644 --- a/lighthouse-core/test/lib/i18n/locales-test.js +++ b/lighthouse-core/test/lib/i18n/locales-test.js @@ -18,13 +18,14 @@ describe('locales', () => { const deprecatedCodes = { in: 'id', iw: 'he', + mo: 'ro', }; for (const locale of Object.keys(locales)) { const canonicalLocale = Intl.getCanonicalLocales(locale)[0]; const substitute = deprecatedCodes[locale]; assert.ok(locale === canonicalLocale || substitute === canonicalLocale, - `locale code '${locale}' not canonical`); + `locale code '${locale}' not canonical ('${canonicalLocale}' found instead)`); } // Deprecation subsitutes should be removed from the test if no longer used.