Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 20, 2025
1 parent 6062177 commit 4e68058
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/next-font/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ describe('next/font', () => {
})
}

it('should not have deprecation warning', async () => {
expect(next.cliOutput.toLowerCase()).not.toContain('deprecation')
})

describe('import values', () => {
test('page with font', async () => {
const html = await renderViaHTTP(next.url, '/with-fonts')
Expand Down
4 changes: 4 additions & 0 deletions test/integration/amphtml/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ describe('AMP Usage', () => {
return killApp(app)
})

it('should not have deprecation warning', async () => {
expect(output.toLowerCase()).not.toContain('deprecation')
})

it('should have amp optimizer in trace', async () => {
const trace = JSON.parse(
readFileSync(join(appDir, '.next/next-server.js.nft.json'), 'utf8')
Expand Down

0 comments on commit 4e68058

Please sign in to comment.