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 854a355 commit d7830cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/app-dir/app/index.test.ts
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 layout
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 d7830cc

Please sign in to comment.