Skip to content

Commit

Permalink
Update script loader tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 1, 2021
1 parent 60e6995 commit fad971d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/integration/script-loader/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default class MyDocument extends Document {
<body>
<Main />
<NextScript />
<div id="text"></div>
</body>
</html>
)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/script-loader/pages/page3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Page = () => {
{`(window.onload = function () {
const newDiv = document.createElement('div')
newDiv.id = 'onload-div'
document.querySelector('.container').appendChild(newDiv)
document.querySelector('body').appendChild(newDiv)
})`}
</Script>
<Script
Expand Down
1 change: 0 additions & 1 deletion test/integration/script-loader/pages/page4.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const Page = () => {
document.getElementById('text').textContent += _.repeat('c', 3)
}}
></Script>
<div id="text"></div>
</div>
)
}
Expand Down

0 comments on commit fad971d

Please sign in to comment.