diff --git a/test/render.test.js b/test/render.test.js index 23fa455f5..cb62bf0a9 100644 --- a/test/render.test.js +++ b/test/render.test.js @@ -99,7 +99,7 @@ function rewriteLocalSchema(url) { return url.map(function(str) { return str.replace(regex, ''); }); - } else if (url instanceof String) { + } else if (typeof url === "string") { return url.replace(regex, ''); } }