diff --git a/test/javascripts/helpers/html-helper.js.es6 b/test/javascripts/helpers/html-helper.js.es6 new file mode 100644 index 00000000000..e9997908db3 --- /dev/null +++ b/test/javascripts/helpers/html-helper.js.es6 @@ -0,0 +1,5 @@ +export function stringToHTML(string) { + const parser = new DOMParser(); + const doc = parser.parseFromString(string, "text/html"); + return doc.body.firstChild; +}