Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
636be246
Unverified
Commit
636be246
authored
Oct 30, 2019
by
Joe Haddad
Committed by
GitHub
Oct 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for #8924 (#9243)
This adds a test for PR #8924.
parent
3b3d20f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
index.test.js
test/integration/amphtml/test/index.test.js
+21
-0
No files found.
test/integration/amphtml/test/index.test.js
View file @
636be246
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment