File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { expect , fixture , html } from '@open-wc/testing'
2- import { target , targets , Targetable } from '../src/target.js'
3- import { use } from '../src/use .js'
2+ import { target , targets } from '../src/target.js'
3+ import { controller } from '../src/controller .js'
44
55describe ( 'Targetable' , ( ) => {
6- @use ( Targetable )
6+ @controller
77 class TargetTest extends HTMLElement {
88 @target foo
99 bar = 'hello'
10- count = 0
11- #baz
12- get baz ( ) {
13- return this . #baz
14- }
15- @target set baz ( value : Element ) {
16- this . count += 1
17- this . #baz = value
18- }
10+ @target baz
1911 @target qux
2012 @target shadow
2113
2214 @target bing
2315 @targets foos
2416 bars = 'hello'
25- counts = 0
26- #bazs
27- get bazs ( ) {
28- return this . #bazs
29- }
30- @target set bazs ( value : Element ) {
31- this . counts += 1
32- this . #bazs = value
33- }
3417 @target quxs
3518 @target shadows
3619 }
37- window . customElements . define ( 'target-test' , TargetTest )
3820
3921 let instance
4022 beforeEach ( async ( ) => {
You can’t perform that action at this time.
0 commit comments