Skip to content

Commit 791fa47

Browse files
koddssonkeithamus
andcommitted
Update tests so that the pass
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
1 parent 93b2e75 commit 791fa47

1 file changed

Lines changed: 4 additions & 22 deletions

File tree

test/target.ts

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,22 @@
11
import {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

55
describe('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 () => {

0 commit comments

Comments
 (0)