Skip to content

Commit

Permalink
Add test for vercel#8924
Browse files Browse the repository at this point in the history
This adds a test for PR vercel#8924.
  • Loading branch information
Timer committed Oct 30, 2019
1 parent c4bef16 commit 1f6895e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/integration/amphtml/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,27 @@ describe('AMP Usage', () => {
})
})

describe('AMP dev no-warn', () => {
let dynamicAppPort
let ampDynamic

it('should not warn on valid amp', async () => {
let inspectPayload = ''
dynamicAppPort = await findPort()
ampDynamic = await launchApp(join(__dirname, '../'), dynamicAppPort, {
onStdout (msg) {
inspectPayload += msg
}
})

await renderViaHTTP(dynamicAppPort, '/only-amp')

await killApp(ampDynamic)

expect(inspectPayload).not.toContain('warn')
})
})

describe('AMP dev mode', () => {
let dynamicAppPort
let ampDynamic
Expand Down

0 comments on commit 1f6895e

Please sign in to comment.