Incluse JavaScript specs when loading suite

Closes #1615
This commit is contained in:
Kevin Sawicki
2014-03-11 13:01:28 -07:00
parent be561f0e5e
commit d6433a67c8

View File

@@ -5,7 +5,7 @@ path = require 'path'
require './spec-helper'
requireSpecs = (specDirectory, specType) ->
for specFilePath in fs.listTreeSync(specDirectory) when /-spec\.coffee$/.test specFilePath
for specFilePath in fs.listTreeSync(specDirectory) when /-spec\.(coffee|js)$/.test specFilePath
require specFilePath
# Set spec directory on spec for setting up the project in spec-helper