Extracting translation mock
This commit is contained in:
parent
3931cee8af
commit
364139d362
2
src/__mocks__/translate.js
Normal file
2
src/__mocks__/translate.js
Normal file
@ -0,0 +1,2 @@
|
||||
const translate = txt => `translate(${ txt })`;
|
||||
export default translate;
|
@ -5,10 +5,10 @@ jest.mock('sentry');
|
||||
|
||||
import { RavenError } from 'components/RavenError';
|
||||
import { Raven } from 'sentry';
|
||||
import translate from '__mocks__/translate';
|
||||
|
||||
const testError = { error: 'test error' };
|
||||
const testDetails = { details: 'test details' };
|
||||
const translate = v => `translate(${ v })`;
|
||||
|
||||
describe('RavenError', () => {
|
||||
test('rendering', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user