mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
test: js/jsx page
This commit is contained in:
parent
4b841c7f2c
commit
844da3f1fe
@ -245,6 +245,11 @@ test('/router-guard', async t => {
|
||||
t.false(html.includes('Router Guard'))
|
||||
})
|
||||
|
||||
test('/jsx', async t => {
|
||||
const { html } = await nuxt.renderRoute('/jsx')
|
||||
t.true(html.includes('<h1>JSX Page</h1>'))
|
||||
})
|
||||
|
||||
// Close server and ask nuxt to stop listening to file changes
|
||||
test.after('Closing server and nuxt.js', t => {
|
||||
nuxt.close()
|
||||
|
7
test/fixtures/basic/pages/jsx.js
vendored
Normal file
7
test/fixtures/basic/pages/jsx.js
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
render() {
|
||||
return <div class='container'>
|
||||
<h1>JSX Page</h1>
|
||||
</div>
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user