Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 30, 2022
1 parent 6d6a1c6 commit 4031553
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 38 deletions.
40 changes: 21 additions & 19 deletions test/development/basic-basepath/next-dynamic/pages/dynamic/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@ import Head from 'next/head'

const Test = dynamic({
loader: async () => {
// component
return () => {
return (
<div className="dynamic-style">
<Head>
<style
dangerouslySetInnerHTML={{
__html: `
.dynamic-style {
background-color: green;
height: 200px;
}
`,
}}
/>
</Head>
test
</div>
)
// component module
return {
default: () => {
return (
<div className="dynamic-style">
<Head>
<style
dangerouslySetInnerHTML={{
__html: `
.dynamic-style {
background-color: green;
height: 200px;
}
`,
}}
/>
</Head>
test
</div>
)
},
}
},
ssr: false,
Expand Down
40 changes: 21 additions & 19 deletions test/development/basic/next-dynamic/pages/dynamic/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@ import Head from 'next/head'

const Test = dynamic({
loader: async () => {
// component
return () => {
return (
<div className="dynamic-style">
<Head>
<style
dangerouslySetInnerHTML={{
__html: `
.dynamic-style {
background-color: green;
height: 200px;
}
`,
}}
/>
</Head>
test
</div>
)
// component module
return {
default: () => {
return (
<div className="dynamic-style">
<Head>
<style
dangerouslySetInnerHTML={{
__html: `
.dynamic-style {
background-color: green;
height: 200px;
}
`,
}}
/>
</Head>
test
</div>
)
},
}
},
ssr: false,
Expand Down

0 comments on commit 4031553

Please sign in to comment.