Skip to content

Commit

Permalink
Update test for SSG page also
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 2, 2020
1 parent 9f81baa commit 75d089c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/integration/auto-export-query-warn/pages/ssg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const Page = () => "I'm SSRed"

export async function getStaticProps() {
return {
props: {
hello: 'world',
},
}
}

export default Page
1 change: 1 addition & 0 deletions test/integration/auto-export-query-warn/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const runTests = () => {

expect(stderr).not.toContain('/amp')
expect(stderr).not.toContain('/ssr')
expect(stderr).not.toContain('/ssg')
expect(stderr).not.toContain('/hello')
})
}
Expand Down

0 comments on commit 75d089c

Please sign in to comment.