v1.0 with SW PWA enabled
This commit is contained in:
27
frontend/node_modules/react-day-picker/src/components/Footer/Footer.test.tsx
generated
vendored
Normal file
27
frontend/node_modules/react-day-picker/src/components/Footer/Footer.test.tsx
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
import { customRender } from 'test/render';
|
||||
import { getTableFooter, queryTableFooter } from 'test/selectors';
|
||||
|
||||
import { Footer } from './Footer';
|
||||
|
||||
customRender(
|
||||
<table role="grid">
|
||||
<Footer />
|
||||
</table>
|
||||
);
|
||||
test('should not render anything as default', () => {
|
||||
expect(queryTableFooter()).toBeNull();
|
||||
});
|
||||
|
||||
describe('when using the `footer` prop', () => {
|
||||
beforeEach(() => {
|
||||
customRender(
|
||||
<table role="grid">
|
||||
<Footer />
|
||||
</table>,
|
||||
{ footer: 'footer_foo' }
|
||||
);
|
||||
});
|
||||
test('should render the table footer', () => {
|
||||
expect(getTableFooter()).toHaveTextContent('footer_foo');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user