Skip to content

Commit

Permalink
Use let instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Apr 6, 2017
1 parent 1b252a2 commit cfa0b4d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions addon-test-support/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* globals requirejs, require */
"use strict";

var moduleIncludeMatchers = [];
var moduleExcludeMatchers = [];
let moduleIncludeMatchers = [];
let moduleExcludeMatchers = [];

export function addModuleIncludeMatcher(fn) {
moduleIncludeMatchers.push(fn);
Expand Down Expand Up @@ -30,11 +30,11 @@ export default class TestLoader {
}

listTestModules() {
var moduleNames = this.listModules();
var testModules = [];
var moduleName;
let moduleNames = this.listModules();
let testModules = [];
let moduleName;

for (var i = 0; i < moduleNames.length; i++) {
for (let i = 0; i < moduleNames.length; i++) {
moduleName = moduleNames[i];

if (checkMatchers(moduleExcludeMatchers, moduleName)) {
Expand All @@ -50,10 +50,10 @@ export default class TestLoader {
}

loadModules() {
var testModules = this.listTestModules();
var testModule;
let testModules = this.listTestModules();
let testModule;

for (var i = 0; i < testModules.length; i++) {
for (let i = 0; i < testModules.length; i++) {
testModule = testModules[i];
this.require(testModule);
this.unsee(testModule);
Expand Down

0 comments on commit cfa0b4d

Please sign in to comment.