From 6ffb1480af8187bfcdd1763b8d90d6ce1088fdd3 Mon Sep 17 00:00:00 2001 From: Paul Hawxby Date: Sat, 12 May 2018 09:34:05 +0100 Subject: [PATCH] fix: moving svg mock to correct place --- test/dom-to-react.js | 2 +- test/helpers/mocks.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/dom-to-react.js b/test/dom-to-react.js index 3c9ae760..4c2ae432 100644 --- a/test/dom-to-react.js +++ b/test/dom-to-react.js @@ -130,7 +130,7 @@ describe('dom-to-react parser', function() { it('handles svg\'s with a viewBox', function() { - var html = mocks.html.svg; + var html = mocks.svg.simple; var reactElement = domToReact(htmlToDOM(html, { lowerCaseAttributeNames: false })); assert.deepEqual( diff --git a/test/helpers/mocks.json b/test/helpers/mocks.json index 3a977d87..73a42d7e 100644 --- a/test/helpers/mocks.json +++ b/test/helpers/mocks.json @@ -11,10 +11,10 @@ "img": "\"Image\"/", "void": "

", "comment": "", - "doctype": "", - "svg": "Inner" + "doctype": "" }, "svg": { + "simple": "Inner", "complex": "AYour browser does not support inline SVG." } }