diff options
Diffstat (limited to 'server/sonar-web/config')
-rw-r--r-- | server/sonar-web/config/jest/SetupTestEnvironment.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/server/sonar-web/config/jest/SetupTestEnvironment.ts b/server/sonar-web/config/jest/SetupTestEnvironment.ts index 9e3b4e53f86..e82edbb84a7 100644 --- a/server/sonar-web/config/jest/SetupTestEnvironment.ts +++ b/server/sonar-web/config/jest/SetupTestEnvironment.ts @@ -19,7 +19,6 @@ */ import * as theme from '../../src/main/js/app/theme'; import ThemeContext from '../../src/main/js/components/theme'; -import SonarUiCommonInitializer, { DEFAULT_LOCALE } from '../../src/main/js/helpers/init'; const content = document.createElement('div'); content.id = 'content'; @@ -27,9 +26,6 @@ document.documentElement.appendChild(content); const baseUrl = ''; (window as any).baseUrl = baseUrl; -SonarUiCommonInitializer.setLocale(DEFAULT_LOCALE) - .setMessages({}) - .setUrlContext(baseUrl); // Hack : override the default value of the context used for theme by emotion // This allows tests to get the theme value without specifiying a theme provider |