Extracting translation mock

This commit is contained in:
Jeff Avallone 2018-02-13 21:23:11 -05:00
parent 3931cee8af
commit 364139d362
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
const translate = txt => `translate(${ txt })`;
export default translate;

View File

@ -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', () => {