test: fix event-emitter-method-names

pull/41362/head
Fedor Indutny 2014-06-05 07:46:55 -07:00
parent 9920ae67b5
commit bd988a590a
1 changed files with 1 additions and 0 deletions

View File

@ -28,5 +28,6 @@ assert.equal(E.constructor.name, 'EventEmitter');
assert.equal(E.on, E.addListener); // Same method.
Object.getOwnPropertyNames(E).forEach(function(name) {
if (name === 'constructor' || name === 'on') return;
if (typeof E[name] !== 'function') return;
assert.equal(E[name].name, name);
});