mirror of https://github.com/nodejs/node.git
test: fix event-emitter-method-names
parent
9920ae67b5
commit
bd988a590a
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue