Skip to content

Commit cca519c

Browse files
committed
f
1 parent 723591f commit cca519c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/urllib.options.allowH2.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import urllib from '../src/index.js';
44

55
describe('urllib.options.allowH2.test.ts', () => {
66
it('should 200 on options.allowH2 = true', async () => {
7-
const response = await urllib.request('https://registry.npmmirror.com', {
7+
let response = await urllib.request('https://registry.npmmirror.com', {
8+
allowH2: true,
9+
dataType: 'json',
10+
});
11+
assert.equal(response.status, 200);
12+
13+
response = await urllib.curl('https://registry.npmmirror.com', {
814
allowH2: true,
915
dataType: 'json',
1016
});

0 commit comments

Comments
 (0)