generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 175
/
Copy pathmerch-whats-included.html.js
35 lines (30 loc) · 1.04 KB
/
merch-whats-included.html.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// @ts-nocheck
import { runTests } from '@web/test-runner-mocha';
import { expect } from '@esm-bundle/chai';
import { mockLana } from '/test/mocks/lana.js';
import { mockFetch } from '/test/mocks/fetch.js';
import { mockConfig } from '/test/mocks/config.js';
import mas from './mas.js';
import '../src/merch-mnemonic-list.js';
import '../src/merch-whats-included.js';
import { appendMiloStyles } from './utils.js';
import { mockIms } from './mocks/ims.js';
const skipTests = sessionStorage.getItem('skipTests');
runTests(async () => {
mockIms();
mockLana();
await mockFetch();
await mas();
if (skipTests !== null) {
appendMiloStyles();
return;
}
describe('merch whats included web component', () => {
it('should exist in the HTML document', async () => {
expect(document.querySelector('merch-whats-included')).to.exist;
});
it('should display merch mnemonic list', async () => {
expect(document.querySelector('merch-mnemonic-list')).to.exist;
});
});
});