mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
test(node-fetch): added FetchError test
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import fetch, { Headers, Request, RequestInit, Response } from 'node-fetch';
|
||||
import fetch, { Headers, Request, RequestInit, Response, FetchError } from 'node-fetch';
|
||||
import { Agent } from "http";
|
||||
|
||||
function test_fetchUrlWithOptions() {
|
||||
@@ -82,3 +82,8 @@ function test_isRedirect() {
|
||||
fetch.isRedirect(301);
|
||||
fetch.isRedirect(201);
|
||||
}
|
||||
|
||||
function test_FetchError() {
|
||||
new FetchError('message', 'type', 'systemError');
|
||||
new FetchError('message', 'type');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user