|
1 |
| -import { expect, fixture } from "@open-wc/testing"; |
2 |
| -import "../../../dist/MyComponent/index"; |
| 1 | +import { expect, fixture } from '@open-wc/testing' |
| 2 | +import '../../../dist/MyComponent/index' |
3 | 3 |
|
4 | 4 | const data = {
|
5 |
| - text: "HelloWorld", |
| 5 | + text: 'HelloWorld', |
6 | 6 | count: 1,
|
7 |
| -}; |
| 7 | +} |
8 | 8 |
|
9 |
| -let el; |
| 9 | +let el |
10 | 10 |
|
11 |
| -describe("<my-component />", async () => { |
12 |
| - it("property text exist", async () => { |
13 |
| - el = await fixture(`<my-component text=${data.text}></my-component`); |
14 |
| - expect(el.text).to.equal(data.text); |
15 |
| - }); |
| 11 | +describe('<my-component />', async () => { |
| 12 | + it('property text exist', async () => { |
| 13 | + el = await fixture(`<my-component text=${data.text}></my-component`) |
| 14 | + expect(el.text).to.equal(data.text) |
| 15 | + }) |
16 | 16 |
|
17 |
| - it("property count exist", async () => { |
18 |
| - el = await fixture(`<my-component count=${data.count}></my-component`); |
19 |
| - expect(el.count).to.equal(data.count); |
20 |
| - }); |
| 17 | + it('property count exist', async () => { |
| 18 | + el = await fixture(`<my-component count=${data.count}></my-component`) |
| 19 | + expect(el.count).to.equal(data.count) |
| 20 | + }) |
21 | 21 |
|
22 |
| - it("property count changed", async () => { |
23 |
| - el = await fixture(`<my-component count=${data.count}></my-component`); |
24 |
| - el.add(); |
25 |
| - expect(el.count).to.equal(data.count + 1); |
26 |
| - }); |
27 |
| -}); |
| 22 | + it('property count changed', async () => { |
| 23 | + el = await fixture(`<my-component count=${data.count}></my-component`) |
| 24 | + el.add() |
| 25 | + expect(el.count).to.equal(data.count + 1) |
| 26 | + }) |
| 27 | +}) |
0 commit comments