UNPKG

@salla.sa/twilight-components

Version:
23 lines (22 loc) 824 B
/*! * Crafted with ❤ by Salla */ import { newSpecPage } from "@stencil/core/testing"; import { SallaDatetimePicker } from "../salla-datetime-picker"; describe('salla-datetime-picker', () => { it('should build', () => { expect(new SallaDatetimePicker()).toBeTruthy(); }); describe('rendering', () => { it('should be able to render component', async () => { let page = await newSpecPage({ components: [SallaDatetimePicker], html: '<salla-datetime-picker enable-seconds value="" enable-time date-format="Y-m-d H:i"></salla-datetime-picker>' }); await page.waitForChanges(); let component = await page.doc.getElementsByClassName('s-datetime-picker-input'); expect(component.length).toBe(1); }); }); }); //# sourceMappingURL=salla-datetime-picker.spec.js.map