Skip to content
New issue

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

fix: table: add page sizes prop to table pagination #393

24 changes: 12 additions & 12 deletions src/components/Select/Select.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,32 +122,32 @@ describe('Select', () => {
});

test('Select is large', () => {
const wrapper = mount(<Select size={SelectSize.Large} />);
expect(wrapper.render()).toMatchSnapshot();
const { container } = render(<Select size={SelectSize.Large} />);
expect(container.firstChild).toMatchSnapshot();
});

test('Select is medium', () => {
const wrapper = mount(<Select size={SelectSize.Medium} />);
expect(wrapper.render()).toMatchSnapshot();
const { container } = render(<Select size={SelectSize.Medium} />);
expect(container.firstChild).toMatchSnapshot();
});

test('Select is small', () => {
const wrapper = mount(<Select size={SelectSize.Small} />);
expect(wrapper.render()).toMatchSnapshot();
const { container } = render(<Select size={SelectSize.Small} />);
expect(container.firstChild).toMatchSnapshot();
});

test('Select is rectangle shaped', () => {
const wrapper = mount(<Select shape={SelectShape.Rectangle} />);
expect(wrapper.render()).toMatchSnapshot();
const { container } = render(<Select shape={SelectShape.Rectangle} />);
expect(container.firstChild).toMatchSnapshot();
});

test('Select is pill shaped', () => {
const wrapper = mount(<Select shape={SelectShape.Pill} />);
expect(wrapper.render()).toMatchSnapshot();
const { container } = render(<Select shape={SelectShape.Pill} />);
expect(container.firstChild).toMatchSnapshot();
});

test('Select is underline shaped', () => {
const wrapper = mount(<Select shape={SelectShape.Underline} />);
expect(wrapper.render()).toMatchSnapshot();
const { container } = render(<Select shape={SelectShape.Underline} />);
expect(container.firstChild).toMatchSnapshot();
});
});
Loading