test: add Headers coverage and benchmark · nodejs/node@acaf986 · GitHub
Skip to content

Commit acaf986

Browse files
anonrigaduh95
authored andcommitted
test: add Headers coverage and benchmark
Add WHATWG Headers unit tests and a fetch/headers benchmark so Node can track the API after the implementation change lands in undici. Refs: nodejs/undici#5699 Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com> PR-URL: #65365 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
1 parent 4a1c9a7 commit acaf986

3 files changed

Lines changed: 346 additions & 0 deletions

File tree

benchmark/fetch/headers.js

Lines changed: 94 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
require('../common');
4+
5+
const runBenchmark = require('../common/benchmark');
6+
7+
runBenchmark('fetch', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
Lines changed: 245 additions & 0 deletions

0 commit comments

Comments
 (0)