//... it('button should render title passed to it', () => { const title = 'Primary Button'; const component = shallow(<Button title={title} />); expect(component.find(Text).first().props().children).toBe(title); }); //...