Permalink
Browse files

A bit redundant

  • Loading branch information...
1 parent 5a79f1f commit 512d7ce67cd5a98dccd44d3982f28195d91f87ba @5long committed Nov 6, 2010
Showing with 2 additions and 4 deletions.
  1. +1 −2 src/runner.js
  2. +1 −1 src/test.js
  3. +0 −1 test/assert_stack_trace.js
View
3 src/runner.js
@@ -2,7 +2,6 @@ var TestSuite = require("./test_suite")
, SuiteMonad = require("./suite_monad")
, Test = require("./test")
, async = require("./util").async
- , fs = require("fs")
, suites = []
// TODO Extract the test runner interface.
@@ -19,7 +18,7 @@ var runner = module.exports = {
, run: function(opt, cb) {
if (arguments.length < 2) cb = opt
var reporters = opt.reporters || []
- async.map(suites, function(suite) {
+ async.paraMap(suites, function(suite) {
reporters.forEach(function(r) {
suite.reportTo(r)
})
View
2 src/test.js
@@ -29,7 +29,7 @@ supportedAsserts.forEach(function(name) {
assert[name].apply(assert, arguments)
this._log(true, msg)
} catch (e) {
- if (!(e instanceof assert.AssertionError)) this._doEnd(e)
+ if (!(e instanceof AssertionError)) this._doEnd(e)
e.stackStartFunction = Self
this._log(false, msg, new AssertionError(e))
}
View
1 test/assert_stack_trace.js
@@ -1,5 +1,4 @@
var reut = require("../src")
- , enum = require("../src/util").enum
, Test = reut.Test
, assert = require("assert")

0 comments on commit 512d7ce

Please sign in to comment.