@@ -54,7 +54,7 @@ var Suite = require('vows/suite').Suite;
54
54
55
55
//
56
56
// This function gets added to events.EventEmitter.prototype, by default.
57
- // It's essentially a wrapper around `addListener `, which adds all the specification
57
+ // It's essentially a wrapper around `on `, which adds all the specification
58
58
// goodness.
59
59
//
60
60
function addVow ( vow ) {
@@ -63,7 +63,7 @@ function addVow(vow) {
63
63
batch . total ++ ;
64
64
batch . vows . push ( vow ) ;
65
65
66
- return this . addListener ( "success" , function ( ) {
66
+ return this . on ( "success" , function ( ) {
67
67
var args = Array . prototype . slice . call ( arguments ) ;
68
68
// If the callback is expecting two or more arguments,
69
69
// pass the error as the first (null) and the result after.
@@ -73,7 +73,7 @@ function addVow(vow) {
73
73
runTest ( args ) ;
74
74
vows . tryEnd ( batch ) ;
75
75
76
- } ) . addListener ( "error" , function ( err ) {
76
+ } ) . on ( "error" , function ( err ) {
77
77
if ( vow . callback . length >= 2 || ! batch . suite . options . error ) {
78
78
runTest ( [ err ] ) ;
79
79
} else {
@@ -124,7 +124,7 @@ function addVow(vow) {
124
124
// On exit, check that all promises have been fired.
125
125
// If not, report an error message.
126
126
//
127
- process . addListener ( 'exit' , function ( ) {
127
+ process . on ( 'exit' , function ( ) {
128
128
var results = { honored : 0 , broken : 0 , errored : 0 , pending : 0 , total : 0 } , failure ;
129
129
130
130
vows . suites . forEach ( function ( s ) {
0 commit comments