From 90ecaf872565681d1830b73421bd14801ab14bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 25 May 2020 20:31:00 +0200 Subject: [PATCH] fix(CodeSandbox): Update allow & sandbox config --- src/__tests__/plugin.js | 2 +- src/__tests__/transformers/CodeSandbox.js | 8 ++++---- src/transformers/CodeSandbox.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/__tests__/plugin.js b/src/__tests__/plugin.js index 365b63d3..78a24394 100644 --- a/src/__tests__/plugin.js +++ b/src/__tests__/plugin.js @@ -47,7 +47,7 @@ describe('gatsby-remark-embedder', () => { - +
diff --git a/src/__tests__/transformers/CodeSandbox.js b/src/__tests__/transformers/CodeSandbox.js index bf0db790..1fe651b9 100644 --- a/src/__tests__/transformers/CodeSandbox.js +++ b/src/__tests__/transformers/CodeSandbox.js @@ -46,7 +46,7 @@ test('Gets the correct CodeSandbox iframe', () => { const html = getHTML('https://codesandbox.io/s/ynn88nx9x'); expect(html).toMatchInlineSnapshot( - `""` + `""` ); }); @@ -64,11 +64,11 @@ test('Plugin can transform CodeSandbox links', async () => { - + - + - + " `); }); diff --git a/src/transformers/CodeSandbox.js b/src/transformers/CodeSandbox.js index 62fd783b..907bcdca 100644 --- a/src/transformers/CodeSandbox.js +++ b/src/transformers/CodeSandbox.js @@ -10,5 +10,5 @@ export const shouldTransform = (url) => { export const getHTML = (url) => { const iframeUrl = url.replace('/s/', '/embed/'); - return ``; + return ``; };