import React from 'react'; import { shallow } from 'enzyme'; import Trans from '../Trans'; describe('Hello!', () => { it('renders without exploding', () => { const wrapper = shallow(Hello %(a)s!); expect(wrapper.exists()).toBe(true); }) });