We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DocumentLayouts
RenderList
type
DownloadLink
Button
PDFDownloadLink
GeneratePDFButton
example:
describe('<MyComponent />', () => { it('renders a header', () => { const wrapper = shallow(<MyComponent />); expect(wrapper.contains(<h1>My Component</h1>)).toBe(true); }); it('renders three <Foo /> components', () => { const wrapper = shallow(<MyComponent />); expect(wrapper.find(Foo).length).toBe(3); }); it('expects to change the status when clicking the button', () => { const wrapper = shallow(<MyComponent />); expect(wrapper.state().status).toBe(false); expect(wrapper.contains(<p>Status is {'Off'}</p>)).toBe(true); wrapper.find('button').simulate('click'); expect(wrapper.state().status).toBe(true); expect(wrapper.contains(<p>Status is {'On'}</p>)).toBe(true); }); });
The text was updated successfully, but these errors were encountered:
@vidjanidhi You can grab this task
Sorry, something went wrong.
No branches or pull requests
DocumentLayouts
we should have one ofRenderList
by passing differenttype
DownloadLink
->Button
withPDFDownloadLink
RenderList
GeneratePDFButton
example:
The text was updated successfully, but these errors were encountered: