Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Feb 25, 2024
1 parent 83103b5 commit 7df1008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/websocket/messageevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ test('test/parallel/test-worker-message-port.js', () => {
})
assert.throws(() => new MessageEvent('message', { source: {} }), {
constructor: TypeError,
message: 'MessagePort: Expected [object Object] to be an instance of MessagePort.'
message: 'MessagePort: Expected {} to be an instance of MessagePort.'
})
assert.throws(() => new MessageEvent('message', { ports: 0 }), {
constructor: TypeError,
Expand All @@ -117,7 +117,7 @@ test('test/parallel/test-worker-message-port.js', () => {
new MessageEvent('message', { ports: [{}] })
, {
constructor: TypeError,
message: 'MessagePort: Expected [object Object] to be an instance of MessagePort.'
message: 'MessagePort: Expected {} to be an instance of MessagePort.'
})

assert(new MessageEvent('message') instanceof Event)
Expand Down

0 comments on commit 7df1008

Please sign in to comment.