Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Modify admin console index tests to ignore order check when language …
Browse files Browse the repository at this point in the history
…is not english (#5695)
  • Loading branch information
fmunshi committed Jun 9, 2020
1 parent b54d32c commit 0d2187e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/admin_console_index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('AdminConsoleIndex.generateIndex', () => {
const intl = createIntl({locale: 'es', messages: esMessages, defaultLocale: 'es'}, {});

const idx = generateIndex(AdminDefinition, {}, intl);
expect(idx.search('ldap')).toEqual([
expect(idx.search('ldap').sort()).toEqual([
'authentication/mfa',
'authentication/ldap',
'authentication/saml',
Expand All @@ -58,21 +58,21 @@ describe('AdminConsoleIndex.generateIndex', () => {
'authentication/discover-ldap',
'environment/session_lengths',
'authentication/guest_access',
]);
expect(idx.search('saml')).toEqual([
].sort());
expect(idx.search('saml').sort()).toEqual([
'authentication/saml',
'authentication/discover-saml',
'environment/session_lengths',
'authentication/email',
'experimental/features',
]);
].sort());
expect(idx.search('nginx')).toEqual([
'environment/rate_limiting',
]);
expect(idx.search('caracteres')).toEqual([
expect(idx.search('caracteres').sort()).toEqual([
'site_config/customization',
'authentication/password',
]);
].sort());
expect(idx.search('characters')).toEqual([]);
expect(idx.search('notexistingword')).toEqual([]);
});
Expand Down

0 comments on commit 0d2187e

Please sign in to comment.