Skip to content

Commit

Permalink
better node 0.10 compat for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 21, 2015
1 parent b93611c commit 8f4b006
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions esnext/test/typechecker-test.js
Expand Up @@ -114,9 +114,12 @@ joe.describe('typechecker', function (describe) {
}

// Run
for ( let [value, typeExpected] of typeTestData ) {
// Do this for for...of as babel's compilation of that doesn't work with node 0.10
typeTestData.forEach(function (item) {
const value = item[0]
const typeExpected = item[1]
const typeActual = typeChecker.getType(value)
testType(value, typeExpected, typeActual)
}
})
})
})

0 comments on commit 8f4b006

Please sign in to comment.