diff --git a/test/render.test.js b/test/render.test.js index 0dea16a9d..23fa455f5 100644 --- a/test/render.test.js +++ b/test/render.test.js @@ -93,8 +93,15 @@ function renderTest(style, info, base, key) { }; } -function rewriteLocalSchema(uri) { - return uri.replace(/^local:\/\//, ''); +function rewriteLocalSchema(url) { + var regex = /^local:\/\//; + if (url instanceof Array) { + return url.map(function(str) { + return str.replace(regex, ''); + }); + } else if (url instanceof String) { + return url.replace(regex, ''); + } } var tests;