import { newSpecPage } from "@stencil/core/testing";
import { EclButton } from "../ecl-button";
import { EclIcon } from "@ecl/web-components-icon/ecl-icon";
describe('ecl-button', () => {
    it('renders', async () => {
        const page = await newSpecPage({
            components: [EclButton, EclIcon],
            html: `<ecl-button
              variant="primary"
              data-ecl-button-icon
              theme="ec"
            >
              <ecl-icon 
                slot="icon-before"
                path="/icons.svg"
                icon="corner-arrow"
                transform="rotate-90"
                style-class="ecl-button__icon ecl-button__icon--before"
              >
              </ecl-icon>
              Button label
            </ecl-button>`,
        });
        expect(page.root).toMatchSnapshot();
    });
});
//# sourceMappingURL=ecl-button.spec.js.map
