Skip to content

Commit 233097b

Browse files
committed
test: convert forEach to for of test-messageevent-brandcheck file
Signed-off-by: Nachiketa Pathak <nachiketapathak11@gmail.com>
1 parent 54bdc2e commit 233097b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

test/parallel/test-messageevent-brandcheck.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
require('../common');
44
const assert = require('assert');
55

6-
[
7-
'data',
8-
'origin',
9-
'lastEventId',
10-
'source',
11-
'ports',
12-
].forEach((i) => {
6+
for (const i of ['data', 'origin', 'lastEventId', 'source', 'ports']) {
137
assert.throws(() => Reflect.get(MessageEvent.prototype, i, {}), TypeError);
14-
});
8+
}

0 commit comments

Comments
 (0)