Skip to content
Browse files

Clean up

  • Loading branch information...
1 parent b26e8fa commit a9ae5662b27a9c3473c68da65ced690751a1194f @joelplane joelplane committed Jun 12, 2011
Showing with 2 additions and 5 deletions.
  1. +2 −5 noodleTest.js
View
7 noodleTest.js
@@ -10,16 +10,13 @@ module.exports = (function(config){
var Assertion = require('./assertion');
var testQueue = require('./testQueue')();
var Test = require('./test')(Assertion, testQueue, config.timeout);
+ var Context = require('./context')(Test);
var main = new EventEmitter();
- /* Relay events emitted by Test instances to the main object */
+ /* Relay events emitted by Test and Context instances to the main object */
Test.on('new', function(t){
events.relayEvents(t, main, ['assertionPassed', 'assertionFailed', 'testFlunk', 'testStarted', 'testTimeout', 'testDone']);
});
-
- var Context = require('./context')(Test);
-
- /* Relay events emitted by Context instances to the main object */
Context.on('new', function(ctx){
events.relayEvents(ctx, main, ['pushContext', 'popContext']);
});

0 comments on commit a9ae566

Please sign in to comment.
Something went wrong with that request. Please try again.