fix imports

This commit is contained in:
Mads Rasmussen
2022-10-07 16:03:42 +02:00
parent 92341edb8a
commit 9366306523
6 changed files with 46 additions and 72 deletions

View File

@@ -32,7 +32,8 @@
"build-storybook": "npm run wc-analyze && build-storybook",
"generate:icons": "node ./devops/icons/index.mjs",
"wc-analyze": "wca **/*.element.ts --outFile custom-elements.json",
"new-extension": "plop --plopfile ./devops/plop/plop.mjs"
"new-extension": "plop --plopfile ./devops/plop/plop.mjs",
"compile": "tsc"
},
"engines": {
"node": ">=16.0.0 <17",

View File

@@ -1,21 +1,19 @@
import { expect, fixture, html } from '@open-wc/testing';
import { defaultA11yConfig } from '../../../core/helpers/chai';
import { UmbPropertyEditorUIBlockListElement } from './umb-property-editor-ui-block-list.element';
import { UmbPropertyEditorUIBlockListElement } from './property-editor-ui-block-list.element';
describe('UmbPropertyEditorUIBlockListElement', () => {
let element: UmbPropertyEditorUIBlockListElement;
let element: UmbPropertyEditorUIBlockListElement;
beforeEach(async () => {
element = await fixture(
html` <umb-property-editor-ui-block-list></umb-property-editor-ui-block-list> `
);
});
beforeEach(async () => {
element = await fixture(html` <umb-property-editor-ui-block-list></umb-property-editor-ui-block-list> `);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockListElement);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockListElement);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
});

View File

@@ -1,21 +1,19 @@
import { expect, fixture, html } from '@open-wc/testing';
import { defaultA11yConfig } from '../../../core/helpers/chai';
import { UmbPropertyEditorUICheckboxListElement } from './umb-property-editor-ui-checkbox-list.element';
import { UmbPropertyEditorUICheckboxListElement } from './property-editor-ui-checkbox-list.element';
describe('UmbPropertyEditorUICheckboxListElement', () => {
let element: UmbPropertyEditorUICheckboxListElement;
let element: UmbPropertyEditorUICheckboxListElement;
beforeEach(async () => {
element = await fixture(
html` <umb-property-editor-ui-checkbox-list></umb-property-editor-ui-checkbox-list> `
);
});
beforeEach(async () => {
element = await fixture(html` <umb-property-editor-ui-checkbox-list></umb-property-editor-ui-checkbox-list> `);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUICheckboxListElement);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUICheckboxListElement);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
});

View File

@@ -1,19 +0,0 @@
import { expect, fixture, html } from '@open-wc/testing';
import { defaultA11yConfig } from '../../../core/helpers/chai';
import { UmbPropertyEditorUIContentPickerElement } from './umb-property-editor-ui-content-picker.element';
describe('UmbPropertyEditorUIContentPickerElement', () => {
let element: UmbPropertyEditorUIContentPickerElement;
beforeEach(async () => {
element = await fixture(html` <umb-property-editor-ui-content-picker></umb-property-editor-ui-content-picker> `);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIContentPickerElement);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
});

View File

@@ -1,21 +1,19 @@
import { expect, fixture, html } from '@open-wc/testing';
import { defaultA11yConfig } from '../../../core/helpers/chai';
import { UmbPropertyEditorUIIconPickerElement } from './umb-property-editor-ui-icon-picker.element';
import { UmbPropertyEditorUIIconPickerElement } from './property-editor-ui-icon-picker.element';
describe('UmbPropertyEditorUIIconPickerElement', () => {
let element: UmbPropertyEditorUIIconPickerElement;
let element: UmbPropertyEditorUIIconPickerElement;
beforeEach(async () => {
element = await fixture(
html` <umb-property-editor-ui-icon-picker></umb-property-editor-ui-icon-picker> `
);
});
beforeEach(async () => {
element = await fixture(html` <umb-property-editor-ui-icon-picker></umb-property-editor-ui-icon-picker> `);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIIconPickerElement);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIIconPickerElement);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
});

View File

@@ -1,21 +1,19 @@
import { expect, fixture, html } from '@open-wc/testing';
import { defaultA11yConfig } from '../../../core/helpers/chai';
import { UmbPropertyEditorUIToggleElement } from './umb-property-editor-ui-toggle.element';
import { UmbPropertyEditorUIToggleElement } from './property-editor-ui-toggle.element';
describe('UmbPropertyEditorUIToggleElement', () => {
let element: UmbPropertyEditorUIToggleElement;
let element: UmbPropertyEditorUIToggleElement;
beforeEach(async () => {
element = await fixture(
html` <umb-property-editor-ui-toggle></umb-property-editor-ui-toggle> `
);
});
beforeEach(async () => {
element = await fixture(html` <umb-property-editor-ui-toggle></umb-property-editor-ui-toggle> `);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIToggleElement);
});
it('is defined with its own instance', () => {
expect(element).to.be.instanceOf(UmbPropertyEditorUIToggleElement);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
it('passes the a11y audit', async () => {
await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
});
});