diff --git a/web/client/components/I18N/__tests__/LangSelector-test.jsx b/web/client/components/I18N/__tests__/LangSelector-test.jsx index 8647f051f4..41d1db166b 100644 --- a/web/client/components/I18N/__tests__/LangSelector-test.jsx +++ b/web/client/components/I18N/__tests__/LangSelector-test.jsx @@ -35,7 +35,8 @@ describe('LangSelector', () => { expect(cmpDom).toExist(); const opts = cmpDom.childNodes; - const langs = {'Italiano': 'it-IT', 'English': 'en-US', 'Français': 'fr-FR', 'Deutsch': 'de-DE', 'Español': 'es-ES', 'Nederlands': 'nl-NL'}; + const langs = { + 'Italiano': 'it-IT', 'English': 'en-US', 'Français': 'fr-FR', 'Deutsch': 'de-DE', 'Español': 'es-ES', "中文": "zh-ZH", 'Nederlands': 'nl-NL'}; for (let i = 0; i < opts.length; i++) { lbl = opts[i].innerHTML; diff --git a/web/client/components/TOC/fragments/settings/__tests__/General-test.jsx b/web/client/components/TOC/fragments/settings/__tests__/General-test.jsx index 074521dbd2..7368e9c68f 100644 --- a/web/client/components/TOC/fragments/settings/__tests__/General-test.jsx +++ b/web/client/components/TOC/fragments/settings/__tests__/General-test.jsx @@ -44,7 +44,7 @@ describe('test Layer Properties General module component', () => { expect(comp).toExist(); const inputs = ReactTestUtils.scryRenderedDOMComponentsWithTag( comp, "input" ); expect(inputs).toExist(); - expect(inputs.length).toBe(8); + expect(inputs.length).toBe(9); }); it('tests Layer Properties Display component events', () => { @@ -69,7 +69,7 @@ describe('test Layer Properties General module component', () => { expect(comp).toExist(); const inputs = ReactTestUtils.scryRenderedDOMComponentsWithTag( comp, "input" ); expect(inputs).toExist(); - expect(inputs.length).toBe(8); + expect(inputs.length).toBe(9); ReactTestUtils.Simulate.change(inputs[0]); expect(spy.calls.length).toBe(1); }); diff --git a/web/client/epics/__tests__/localconfig-test.js b/web/client/epics/__tests__/localconfig-test.js index 43bbf629c1..63face960e 100644 --- a/web/client/epics/__tests__/localconfig-test.js +++ b/web/client/epics/__tests__/localconfig-test.js @@ -26,8 +26,8 @@ describe('localconfig Epics', () => { const suppLocales = LocaleUtils.getSupportedLocales(); switch (action.type) { case SUPPORTED_LOCALES_REGISTERED: - // 5 is the actual default number of locales - expect(Object.keys(suppLocales).length).toBe(5); + // 6 is the actual default number of locales + expect(Object.keys(suppLocales).length).toBe(6); break; default: expect(true).toBe(false);