Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: check that EventEmitter.on == EventEmitter.addListener
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Oct 14, 2011
1 parent 018e110 commit b6a869e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/simple/test-event-emitter-add-listeners.js
Expand Up @@ -28,6 +28,9 @@ var e = new events.EventEmitter();
var events_new_listener_emited = [];
var times_hello_emited = 0;

// sanity check
assert.equal(e.addListener, e.on);

e.on('newListener', function(event, listener) {
console.log('newListener: ' + event);
events_new_listener_emited.push(event);
Expand Down

0 comments on commit b6a869e

Please sign in to comment.