diff options
Diffstat (limited to 'test/parallel/test-event-emitter-once.js')
-rw-r--r-- | test/parallel/test-event-emitter-once.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-event-emitter-once.js b/test/parallel/test-event-emitter-once.js index fa99a1362a..1bdf0cbf12 100644 --- a/test/parallel/test-event-emitter-once.js +++ b/test/parallel/test-event-emitter-once.js @@ -52,12 +52,12 @@ e.emit('e'); // Verify that the listener must be a function common.expectsError(() => { const ee = new EventEmitter(); - ee.once('foo', null); }, { code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "listener" argument must be of type Function' + message: 'The "listener" argument must be of type Function. ' + + 'Received type object' }); { |