We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3deb0 commit c193167Copy full SHA for c193167
src/Utils.test.ts
@@ -154,4 +154,12 @@ describe("utils", () => {
154
155
expect(fetchSuccess).toBeInstanceOf(Object)
156
})
157
+
158
+ it("fetchLite: invalid URL", async () => {
159
+ expect.assertions(1)
160
161
+ const fetchSuccess = await fetchLite("invalid")
162
163
+ expect(fetchSuccess).toBeUndefined()
164
+ })
165
src/Utils.ts
@@ -161,7 +161,6 @@ export const fetchLite = <T>(
thisReq.write(bodyStringify)
}
- // istanbul ignore next
thisReq.on("error", () => resolve(undefined))
166
thisReq.end()
167
0 commit comments