From 497ae892797072cf4aab895a5bd4d29126ba2dda Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 29 Apr 2019 11:23:42 -0400 Subject: [PATCH] add a test for #618 --- test/apps/encoding/src/routes/index.html | 2 +- test/apps/encoding/test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/apps/encoding/src/routes/index.html b/test/apps/encoding/src/routes/index.html index 198a277..b94d161 100644 --- a/test/apps/encoding/src/routes/index.html +++ b/test/apps/encoding/src/routes/index.html @@ -1,3 +1,3 @@

Great success!

-link \ No newline at end of file +link \ No newline at end of file diff --git a/test/apps/encoding/test.ts b/test/apps/encoding/test.ts index c50559b..157615a 100644 --- a/test/apps/encoding/test.ts +++ b/test/apps/encoding/test.ts @@ -35,11 +35,11 @@ describe('encoding', function() { }); it('encodes req.params and req.query for server-rendered pages', async () => { - await page.goto(`${base}/echo/page/encöded?message=hëllö+wörld&föo=bar&=baz`); + await page.goto(`${base}/echo/page/encöded?message=hëllö+wörld&föo=bar&=baz&tel=%2B123456789`); assert.equal( await page.$eval('h1', node => node.textContent), - 'encöded {"message":"hëllö wörld","föo":"bar","":"baz"}' + 'encöded {"message":"hëllö wörld","föo":"bar","":"baz","tel":"+123456789"}' ); }); @@ -48,12 +48,12 @@ describe('encoding', function() { await start(); await prefetchRoutes(); - await page.click('a[href="echo/page/encöded?message=hëllö+wörld&föo=bar&=baz"]'); + await page.click('a'); await wait(50); assert.equal( await page.$eval('h1', node => node.textContent), - 'encöded {"message":"hëllö wörld","föo":"bar","":"baz"}' + 'encöded {"message":"hëllö wörld","föo":"bar","":"baz","tel":"+123456789"}' ); });