Unverified Commit 636be246 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Add test for #8924 (#9243)

This adds a test for PR #8924.
parent 3b3d20f7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment