Skip to content

Commit f1273e8

Browse files
julianduqueBridgeAR
authored andcommitted
test: cover node entry type in perf_hooks
PR-URL: #32751 Reviewed-By: Adrian Estrada <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2f7e372 commit f1273e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-performanceobserver.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_FUNCTION], 0);
8888
countdown.dec();
8989
}
9090
assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_MARK], 0);
91-
observer.observe({ entryTypes: ['mark'] });
91+
assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_NODE], 0);
92+
observer.observe({ entryTypes: ['mark', 'node'] });
9293
assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_MARK], 1);
94+
assert.strictEqual(counts[NODE_PERFORMANCE_ENTRY_TYPE_NODE], 1);
9395
performance.mark('test1');
9496
performance.mark('test2');
9597
performance.mark('test3');

0 commit comments

Comments
 (0)