Skip to content

Commit

Permalink
Update amphtml rel for serverless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 14, 2019
1 parent b4cccd4 commit acd819f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/serverless-trace/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Serverless Trace', () => {
it('should have correct amphtml rel link', async () => {
const html = await renderViaHTTP(appPort, '/some-amp')
expect(html).toMatch(/Hi Im an AMP page/)
expect(html).toMatch(/rel="amphtml" href="\/some-amp\?amp=1"/)
expect(html).toMatch(/rel="amphtml" href="\/some-amp.amp"/)
})

it('should have correct canonical link', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/serverless/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('Serverless', () => {
it('should have correct amphtml rel link', async () => {
const html = await renderViaHTTP(appPort, '/some-amp')
expect(html).toMatch(/Hi Im an AMP page/)
expect(html).toMatch(/rel="amphtml" href="\/some-amp\?amp=1"/)
expect(html).toMatch(/rel="amphtml" href="\/some-amp.amp"/)
})

it('should have correct canonical link', async () => {
Expand Down

0 comments on commit acd819f

Please sign in to comment.