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 2011bae commit 0cecc80Copy full SHA for 0cecc80
__tests__/ipinfoWrapper.test.ts
@@ -197,13 +197,14 @@ describe("IPinfoWrapper", () => {
197
await expect(ipinfo.lookupIp("1.2.3.4")).rejects.toThrow();
198
});
199
200
- test("Error is thrown when response cannot be parsed", async () => {
201
- const baseUrlWithUnparseableResponse =
202
- "https://ipinfo.io/developers?path=";
+ test("Error is thrown when response cannot be parsed as JSON", async () => {
+ const baseUrlWithUnparseableResponse = "https://ipinfo.io/developers#";
+
203
const ipinfo = new IPinfoWrapper(
204
"token",
205
baseUrlWithUnparseableResponse
206
);
207
208
209
210
const status = await ipinfo
0 commit comments