Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Badge],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Toggle],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Drawer],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Panel],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
it('should render content', async () => {
testWindow = new TestWindow();
element = await testWindow.load({
components: [Infowindow],
html: `
Hello there!
`
});
expect(element).toMatchSnapshot();
});
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Image],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Demo],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
it(name, async () => {
const window = new TestWindow();
element = await window.load({
components: [Breadcrumbs, Breadcrumb],
html
});
window.flush();
expect(element).toMatchSnapshot();
});
};
beforeEach(async () => {
testWindow = new TestWindow();
element = await testWindow.load({
components: [Switch],
html: ''
});
});
beforeEach(async () => {
testWindow = new TestWindow();
element = await testWindow.load({
components: [ResponsiveContent],
html: `${domExample}`
});
await testWindow.flush();
});