From 636be2466ef303b5a48ef35fb4014fce13398dd3 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Wed, 30 Oct 2019 00:01:56 -0400 Subject: [PATCH] Add test for #8924 (#9243) This adds a test for PR #8924. --- test/integration/amphtml/test/index.test.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/integration/amphtml/test/index.test.js b/test/integration/amphtml/test/index.test.js index bbbe78c127ce1..ac5f3b0eb4a21 100644 --- a/test/integration/amphtml/test/index.test.js +++ b/test/integration/amphtml/test/index.test.js @@ -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