Skip to content

Commit

Permalink
Fixed chinese language implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto committed Feb 27, 2018
1 parent 93c5f4e commit 49b15d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion web/client/components/I18N/__tests__/LangSelector-test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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);
});
Expand Down
4 changes: 2 additions & 2 deletions web/client/epics/__tests__/localconfig-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 49b15d2

Please sign in to comment.