GroceriStar / GroceriStar/pdf-export-component
component should contain
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] inside `DocumentLayouts` we should have one of `RenderList` by passing different `type`
- [ ] `DownloadLink` -> `Button` with `PDFDownloadLink`
- [ ] `RenderList`
- [ ] `GeneratePDFButton`
- [ ] ...
example:
```
describe('', () => {
it('renders a header', () => {
const wrapper = shallow();
expect(wrapper.contains(
My Component
)).toBe(true);});
it('renders three components', () => {
const wrapper = shallow();
expect(wrapper.find(Foo).length).toBe(3);
});
it('expects to change the status when clicking the button', () => {
const wrapper = shallow();
expect(wrapper.state().status).toBe(false);
expect(wrapper.contains(
Status is {'Off'}
)).toBe(true);wrapper.find('button').simulate('click');
expect(wrapper.state().status).toBe(true);
expect(wrapper.contains(
Status is {'On'}
)).toBe(true);});
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.