UNPKG

@salla.sa/twilight-components

Version:
29 lines (28 loc) 919 B
/*! * Crafted with ❤ by Salla */ import { newSpecPage } from "@stencil/core/testing"; import { SallaPlaceholder } from "../salla-placeholder"; describe('salla-placeholder', () => { it("should build", () => { expect(new SallaPlaceholder()).toBeTruthy(); }); describe('rendering', () => { let page; beforeEach(async () => { page = await newSpecPage({ components: [SallaPlaceholder], html: '<salla-placeholder>' + '<span slot="title">No orders found</span>\n' + '<span slot="description">Unbelievable! You have not ordered yet!</span>' + '</salla-placeholder>' }); }); it('should be able to render component', async () => { await page.waitForChanges(); let component = page.doc.querySelector('salla-placeholder'); expect(component).toBeDefined(); }); }); }); //# sourceMappingURL=salla-placeholder.spec.js.map