-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(summary): SKFP-827 add accessibility settings for graph
- Loading branch information
lflangis
committed
Dec 5, 2023
1 parent
cfa7851
commit b8b8c89
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// react-intl | ||
import intl from 'react-intl-universal'; | ||
require('intl/locale-data/jsonp/en.js'); | ||
|
||
const locales = require('./src/locales/index'); | ||
const { LANG } = require('./src/common/constants'); | ||
intl.init({ locales: { [LANG.EN]: locales.default.en }, currentLocale: LANG.EN }); | ||
|
||
// matchmedia fix | ||
Object.defineProperty(window, 'matchMedia', { | ||
value: jest.fn().mockImplementation((query) => ({ | ||
// deprecated | ||
addEventListener: jest.fn(), | ||
|
||
addListener: jest.fn(), | ||
|
||
dispatchEvent: jest.fn(), | ||
|
||
matches: false, | ||
|
||
media: query, | ||
|
||
onchange: null, | ||
|
||
removeEventListener: jest.fn(), | ||
// deprecated | ||
removeListener: jest.fn(), | ||
})), | ||
writable: true, | ||
}); |