Skip to content

Commit

Permalink
docs: use innerHTML in teleport cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored and cexbrayat committed Apr 7, 2024
1 parent 10237ed commit 4e3bda3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/fr/guide/advanced/teleport.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ beforeEach(() => {

afterEach(() => {
// nous nettoyons un peu
document.body.outerHTML = '';
document.body.innerHTML = '';
});

test('teleport', async () => {
Expand Down Expand Up @@ -174,7 +174,7 @@ beforeEach(() => {

afterEach(() => {
// nous nettoyons un peu
document.body.outerHTML = '';
document.body.innerHTML = '';
});

test('teleport', async () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/advanced/teleport.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ beforeEach(() => {

afterEach(() => {
// clean up
document.body.outerHTML = ''
document.body.innerHTML = ''
})

test('teleport', async () => {
Expand Down Expand Up @@ -173,7 +173,7 @@ beforeEach(() => {

afterEach(() => {
// clean up
document.body.outerHTML = ''
document.body.innerHTML = ''
})

test('teleport', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/docs-examples/teleport.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ beforeEach(() => {

afterEach(() => {
// clean up
document.body.outerHTML = ''
document.body.innerHTML = ''
})

test('teleport', async () => {
Expand Down

0 comments on commit 4e3bda3

Please sign in to comment.