Skip to content

Commit

Permalink
Merge branch 'canary' into apply-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Oct 30, 2019
2 parents 9dc435a + 636be24 commit 44bfde7
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 44bfde7

Please sign in to comment.