@operato/property-editor 0.3.28 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +0,0 @@
1
- import '../src/ox-property-editor'
2
-
3
- import { expect, fixture } from '@open-wc/testing'
4
-
5
- import { OxPropertyEditor } from '../src/ox-property-editor'
6
- import { html } from 'lit'
7
-
8
- describe('OxPropertyEditor', () => {
9
- it('has a default title "Hey there" and counter 5', async () => {
10
- const el = await fixture<OxPropertyEditor>(html` <ox-property-editor></ox-property-editor> `)
11
-
12
- // expect(el.title).to.equal('Hey there')
13
- // expect(el.counter).to.equal(5)
14
- })
15
-
16
- it('increases the counter on button click', async () => {
17
- const el = await fixture<OxPropertyEditor>(html` <ox-property-editor></ox-property-editor> `)
18
- el.renderRoot!.querySelector('button')!.click()
19
-
20
- // expect(el.counter).to.equal(6)
21
- })
22
-
23
- it('can override the title via attribute', async () => {
24
- const el = await fixture<OxPropertyEditor>(html` <property-editor title="attribute title"></ox-property-editor> `)
25
-
26
- expect(el.title).to.equal('attribute title')
27
- })
28
-
29
- it('passes the a11y audit', async () => {
30
- const el = await fixture<OxPropertyEditor>(html` <ox-property-editor></ox-property-editor> `)
31
-
32
- await expect(el).shadowDom.to.be.accessible()
33
- })
34
- })