UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

27 lines (26 loc) 1.05 kB
/*! * KoliBri - The accessible HTML-Standard */ import { h } from "@stencil/core"; import { newSpecPage } from "@stencil/core/testing"; import CustomSuggestionsOptionsGroupFc from "../CustomSuggestionsOptionsGroup"; describe('CustomSuggestionsOptionsGroup', () => { const defaultProps = { blockSuggestionMouseOver: false, }; it('renders default state', async () => { const page = await newSpecPage({ components: [], template: () => (h(CustomSuggestionsOptionsGroupFc, Object.assign({}, defaultProps), h("li", null, "Test Content"))), }); expect(page.root).toMatchSnapshot(); }); it('renders with blocked mouse over', async () => { const page = await newSpecPage({ components: [], template: () => (h(CustomSuggestionsOptionsGroupFc, Object.assign({}, defaultProps, { blockSuggestionMouseOver: true }), h("li", null, "Test Content"))), }); expect(page.root).toMatchSnapshot(); }); }); //# sourceMappingURL=snapshot.test.js.map