Skip to content

Commit af9824b

Browse files
committed
test: update for replaceParentNode
1 parent 62a10fa commit af9824b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ customElements.define("${islandName}", class Island${name} extends HTMLElement {
179179
180180
renderIsland(){
181181
mergePropsWithDOM(this, this.baseProps);
182-
render(restoreTree(this.component.default, this.baseProps), this,${
182+
render(restoreTree(this.component.default, this.baseProps), this, ${
183183
replaceParentNode ? 'this' : 'undefined'
184-
} )
184+
})
185185
}
186186
})`
187187
}

tests/basic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ customElements.define("island-component", class IslandComponent extends HTMLElem
143143
144144
renderIsland(){
145145
mergePropsWithDOM(this, this.baseProps);
146-
render(restoreTree(this.component.default, this.baseProps), this, this)
146+
render(restoreTree(this.component.default, this.baseProps), this, undefined)
147147
}
148148
})`
149149
)
@@ -278,7 +278,7 @@ customElements.define("island-component", class IslandComponent extends HTMLElem
278278
279279
renderIsland(){
280280
mergePropsWithDOM(this, this.baseProps);
281-
render(restoreTree(this.component.default, this.baseProps), this, this)
281+
render(restoreTree(this.component.default, this.baseProps), this, undefined)
282282
}
283283
})`
284284
)

0 commit comments

Comments
 (0)