Skip to content

Commit

Permalink
Fix(mjml-react): make sure to not use '#' char in data URI: https://w…
Browse files Browse the repository at this point in the history
  • Loading branch information
kranux committed Dec 3, 2018
1 parent 184503b commit a81e18e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/render.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('mjml-react', () => {
const {html, errors} = renderEmail();
expect(errors).to.deep.equal([]);

await page.goto(`data:text/html,${html}`, {waitUntil: 'networkidle0'});
await page.goto(htmlToDataUri(html), {waitUntil: 'networkidle0'});
};

describe('desktop', () => {
Expand All @@ -47,3 +47,7 @@ describe('mjml-react', () => {
});

});

function htmlToDataUri(html) {
return `data:text/html,${html.replace(/#/g, '%23')}`;
}

0 comments on commit a81e18e

Please sign in to comment.