import { render } from '@stencil/vitest';
describe('ontario-table', () => {
beforeEach(() => {
global.ResizeObserver = vi.fn().mockImplementation(function () {
return {
observe: vi.fn(),
unobserve: vi.fn(),
disconnect: vi.fn(),
};
});
});
describe('snapshot - 3 columns (non-numeric)', () => {
it('should render the expected html', async () => {
const page = await render(`
`);
expect(page.root).toMatchSnapshot();
});
});
describe('snapshot - 5 columns (numeric)', () => {
it('should render the expected html', async () => {
const page = await render(`
`);
expect(page.root).toMatchSnapshot();
});
});
describe('snapshot - 7 columns (numeric and condensed)', () => {
it('should render the expected html', async () => {
const page = await render(`
`);
expect(page.root).toMatchSnapshot();
});
});
});