Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pacexy committed Dec 23, 2022
1 parent e5ac016 commit 3f35fe5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/app-dir/app/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,12 @@ createNextDescribe(
})

describe('special entries', () => {
it('should include css imported in layout.js', async () => {
const html = await next.render('/')
// The link tag should be included together with loading
expect(html).toMatch(/<link rel="stylesheet" href="(.+)style\.css"/)
})

it('should include css imported in loading.js', async () => {
const html = await next.render('/loading-bug/hi')
// The link tag should be included together with loading
Expand Down

0 comments on commit 3f35fe5

Please sign in to comment.