Merge pull request 'test(metrics): read the content-type as string | string[]' (#15) from test/core-rc1-header-arrays into develop
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 10s
CI / build (push) Successful in 12s
CI / runtimes (deno) (push) Successful in 10s
CI / runtimes (edge) (push) Successful in 9s
Promote → GitHub / push-github (push) Successful in 7s
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 10s
CI / build (push) Successful in 12s
CI / runtimes (deno) (push) Successful in 10s
CI / runtimes (edge) (push) Successful in 9s
Promote → GitHub / push-github (push) Successful in 7s
This commit was merged in pull request #15.
This commit is contained in:
commit
cf7d30d8c2
1 file changed
+2
-1
@@ -88,7 +88,8 @@ test('the transformer serves the text format with the content type Prometheus ex
|
||||
const rendered = prometheus('green_tea_requests_total{route="/x",method="GET",status="200"} 1\n');
|
||||
|
||||
assert.equal(rendered.status, 200);
|
||||
assert.match(rendered.headers!['content-type'], /text\/plain/);
|
||||
// Core RC.1 widens response header values to `string | string[]` (core #113), so a reader narrows.
|
||||
assert.match(String(rendered.headers!['content-type']), /text\/plain/);
|
||||
assert.match(rendered.body, /green_tea_requests_total/);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user