UNPKG

@salla.sa/twilight-components

Version:
61 lines (60 loc) 1.49 kB
/*! * Crafted with by Salla */ import { newE2EPage } from "@stencil/core/testing"; const products = [{ id: 1, type: 'Test Type', status: 'Test Status', is_available: true, sku: 'Test SKU', name: 'Test Name', price: { amount: 1, currency: 'Test Currency' }, promotion: { title: 'Test Title', sub_title: 'Test Sub Title' }, sale_price: { amount: 1, currency: 'Test Currency' }, regular_price: { amount: 1, currency: 'Test Currency' }, currency: 'Test Currency', url: 'Test URL', thumbnail: 'Test Thumbnail', has_special_price: true, favorite: true }]; //@ts-ignore const offer = { id: 1, name: 'Test Offer', message: 'Test Message', expiry_date: '2020-01-01', formatted_date: '2020-01-01', offer_type: 'Test Offer Type', status: 'Test Status', buy: { type: 'Test Type', quantity: 1, products: products }, get: { categories: [{ id: 1, name: 'Test Name', url: 'Test URL' }], products: products, type: "Test Type", discount_type: "Test discount type", } }; describe('salla-offer-modal-e2e', () => { let page; let element; beforeEach(async () => { page = await newE2EPage({ html: `<salla-offer-modal></salla-offer-modal>` }); element = await page.find('salla-offer-modal'); }); it('should render the component', async () => { expect(element).not.toBeNull(); }); }); //# sourceMappingURL=salla-offer-modal.e2e.js.map