@salla.sa/twilight-components
Version:
Salla Web Component
26 lines (25 loc) • 839 B
JavaScript
/*!
* Crafted with ❤ by Salla
*/
import { newSpecPage } from "@stencil/core/testing";
import { SallaFileUpload } from "../salla-file-upload";
describe('salla-file-upload', () => {
it('should build', () => {
expect(new SallaFileUpload()).toBeTruthy();
});
describe('rendering', () => {
let page;
beforeEach(async () => {
page = await newSpecPage({
components: [SallaFileUpload],
html: '<salla-file-upload url="https://api.upload.file/images" cart-item-id="1234568" profile-image="true"></salla-file-upload>'
});
});
it('should be able to render component', async () => {
await page.waitForChanges();
let component = page.doc.querySelector('salla-file-upload');
expect(component).not.toBeNull();
});
});
});
//# sourceMappingURL=salla-file-upload.spec.js.map