We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c486f commit 8114a21Copy full SHA for 8114a21
1 file changed
test/controller.js
@@ -1,6 +1,17 @@
1
import {controller} from '../lib/controller.js'
2
3
describe('controller', () => {
4
+ let root
5
+
6
+ beforeEach(() => {
7
+ root = document.createElement('div')
8
+ document.body.appendChild(root)
9
+ })
10
11
+ afterEach(() => {
12
+ root.remove()
13
14
15
it('calls register', async () => {
16
class ControllerRegisterElement extends HTMLElement {}
17
controller(ControllerRegisterElement)
0 commit comments