Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto committed Jul 23, 2019
1 parent deb94e3 commit cb00a93
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 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,7 @@ describe('LangSelector', () => {

const opts = cmpDom.childNodes;
const langs = {
'Italiano': 'it-IT', 'English': 'en-US', 'Français': 'fr-FR', 'Deutsch': 'de-DE', 'Español': 'es-ES', "中文": "zh-ZH", 'Nederlands': 'nl-NL', 'Hrvatski': 'hr-HR', 'Português': 'pt-PT'};
'Italiano': 'it-IT', 'English': 'en-US', 'Français': 'fr-FR', 'Deutsch': 'de-DE', 'Español': 'es-ES', "中文": "zh-ZH", 'Nederlands': 'nl-NL', 'Hrvatski': 'hr-HR', 'Português': 'pt-PT', "tiếng Việt": "vi-VN"};

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(14);
expect(inputs.length).toBe(15);

});
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(14);
expect(inputs.length).toBe(15);
ReactTestUtils.Simulate.change(inputs[0]);
expect(spy.calls.length).toBe(1);
});
Expand Down
2 changes: 1 addition & 1 deletion web/client/epics/__tests__/localconfig-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('localconfig Epics', () => {
const suppLocales = LocaleUtils.getSupportedLocales();
switch (action.type) {
case SUPPORTED_LOCALES_REGISTERED:
expect(Object.keys(suppLocales).length).toBe(9);
expect(Object.keys(suppLocales).length).toBe(10);
break;
default:
expect(true).toBe(false);
Expand Down
4 changes: 2 additions & 2 deletions web/client/utils/__tests__/LocaleUtils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('LocaleUtils', () => {
expect(LocaleUtils.getDateFormat("pt-PT")).toBe("DD/MM/YYYY");
});
it('test the defaults for DATE_FORMATS', () => {
expect(Object.keys(LocaleUtils.DATE_FORMATS).length).toBe(7);
expect(Object.keys(LocaleUtils.DATE_FORMATS)).toEqual(["default", "en-US", "it-IT", "nl-NL", "zh-ZH", "hr-HR", "pt-PT"]);
expect(Object.keys(LocaleUtils.DATE_FORMATS).length).toBe(8);
expect(Object.keys(LocaleUtils.DATE_FORMATS)).toEqual(["default", "en-US", "it-IT", "nl-NL", "zh-ZH", "hr-HR", "pt-PT", "vi-VN"]);
});
});

0 comments on commit cb00a93

Please sign in to comment.