import { customRender } from 'test/render';
import { getTableFooter, queryTableFooter } from 'test/selectors';
import { Footer } from './Footer';
customRender(
);
test('should not render anything as default', () => {
expect(queryTableFooter()).toBeNull();
});
describe('when using the `footer` prop', () => {
beforeEach(() => {
customRender(
,
{ footer: 'footer_foo' }
);
});
test('should render the table footer', () => {
expect(getTableFooter()).toHaveTextContent('footer_foo');
});
});