diff --git a/lib/middleware/karma.js b/lib/middleware/karma.js index 831668324..04dd47a3f 100644 --- a/lib/middleware/karma.js +++ b/lib/middleware/karma.js @@ -174,7 +174,7 @@ var createKarmaMiddleware = function ( var scriptTags = [] var scriptUrls = [] - for (var i in files.included) { + for (var i = 0; i < files.included.length; i++) { var file = files.included[i] var filePath = file.path var fileExt = path.extname(filePath)