diff --git a/lib/middleware/karma.js b/lib/middleware/karma.js index c2e28b3cd..88e438112 100644 --- a/lib/middleware/karma.js +++ b/lib/middleware/karma.js @@ -193,10 +193,10 @@ function createKarmaMiddleware ( } else { const scriptType = (SCRIPT_TYPE[fileType] || 'text/javascript') const crossOriginAttribute = includeCrossOriginAttribute ? 'crossorigin="anonymous"' : '' - if (scriptType == "module") { - scriptTags.push(``) + if (scriptType === 'module') { + scriptTags.push(``) } else { - scriptTags.push(``) + scriptTags.push(``) } } }