1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 22:15:02 +00:00
mon-entreprise/componentTestSetup.js
Johan Girod 7ab7c6c7eb 🎨 Format the currencies depending on the locale
Add a withLanguage HOC for abstracting the language
implementation
2018-05-09 11:24:01 +02:00

15 lines
464 B
JavaScript

import Enzyme from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import chai from 'chai'
import sinonChai from 'sinon-chai'
chai.use(sinonChai)
Enzyme.configure({ adapter: new Adapter() })
// Setup Intl in "en" and "fr" for testing
// var areIntlLocalesSupported = require('intl-locales-supported')
// var localesMyAppSupports = ['en', 'fr']
global.Intl = require('intl')
require('intl/locale-data/jsonp/en.js')
require('intl/locale-data/jsonp/fr.js')