From 4c577b30e235d0fe51cf3b290ff34a56e66edc9a Mon Sep 17 00:00:00 2001 From: Paul Paterson Date: Wed, 18 Dec 2024 10:00:23 -0500 Subject: [PATCH] remove getURL from tests --- __tests__/functional/client-configuration.test.ts | 6 ------ __tests__/functional/feed-client.test.ts | 1 - .../integration/client-last-txn-tracking.test.ts | 6 ------ __tests__/integration/query.test.ts | 15 --------------- __tests__/integration/set.test.ts | 6 ------ 5 files changed, 34 deletions(-) diff --git a/__tests__/functional/client-configuration.test.ts b/__tests__/functional/client-configuration.test.ts index 319ee6e9..b9a1d0e3 100644 --- a/__tests__/functional/client-configuration.test.ts +++ b/__tests__/functional/client-configuration.test.ts @@ -110,9 +110,6 @@ an environmental variable named FAUNA_SECRET or pass it to the Client constructo }, close() {}, - getURL(): string { - return "http://foo.com/bar"; - }, }; const client = getClient( @@ -150,9 +147,6 @@ an environmental variable named FAUNA_SECRET or pass it to the Client constructo }, close() {}, - getURL(): string { - return "https://foo.com/bar"; - }, }; const client = getClient( diff --git a/__tests__/functional/feed-client.test.ts b/__tests__/functional/feed-client.test.ts index 7749b6bd..8d66f1db 100644 --- a/__tests__/functional/feed-client.test.ts +++ b/__tests__/functional/feed-client.test.ts @@ -31,7 +31,6 @@ const mockHttpClient = { .fn() .mockImplementation(() => Promise.resolve({ ...mockHttpResponse })), close: jest.fn(), - getURL: jest.fn(() => "bar"), }; const defaultConfig: FeedClientConfiguration = { diff --git a/__tests__/integration/client-last-txn-tracking.test.ts b/__tests__/integration/client-last-txn-tracking.test.ts index 8e22947b..4188a9e3 100644 --- a/__tests__/integration/client-last-txn-tracking.test.ts +++ b/__tests__/integration/client-last-txn-tracking.test.ts @@ -15,9 +15,6 @@ describe("last_txn_ts tracking in client", () => { }, close() {}, - getURL(): string { - return "http://foo.com/bar"; - }, }; const myClient = getClient( @@ -66,9 +63,6 @@ describe("last_txn_ts tracking in client", () => { }, close() {}, - getURL(): string { - return "http://foo.com/bar"; - }, }; const myClient = getClient( diff --git a/__tests__/integration/query.test.ts b/__tests__/integration/query.test.ts index 15c09e15..9da5bd2d 100644 --- a/__tests__/integration/query.test.ts +++ b/__tests__/integration/query.test.ts @@ -140,9 +140,6 @@ describe("query", () => { return dummyResponse; }, close() {}, - getURL(): string { - return "http://foo.com/bar"; - }, }; const clientConfiguration: Partial = { linearized: true, @@ -166,9 +163,6 @@ describe("query", () => { return dummyResponse; }, close() {}, - getURL() { - return "http://foo.com/bar"; - }, }; let clientConfiguration: Partial = { @@ -277,9 +271,6 @@ describe("query", () => { ); }, close() {}, - getURL() { - return "http://foo.com/bar"; - }, }; badClient = getClient({}, httpClient); await badClient.query(fql`"dummy"`); @@ -388,9 +379,6 @@ describe("query", () => { return httpClient.request(badRequest); }, close() {}, - getURL() { - return "http://foo.com/bar"; - }, }; const badClient = getClient({}, badHTTPClient); @@ -412,9 +400,6 @@ describe("query", () => { throw new Error("boom!"); }, close() {}, - getURL(): string { - return "http://foo.com/bar"; - }, }; const badClient = getClient( { diff --git a/__tests__/integration/set.test.ts b/__tests__/integration/set.test.ts index 60933fee..49698fed 100644 --- a/__tests__/integration/set.test.ts +++ b/__tests__/integration/set.test.ts @@ -213,9 +213,6 @@ describe("SetIterator", () => { close() { return; }, - getURL(): string { - return "http://foo.com/bar"; - }, }; const testClient = getClient({}, httpClient); @@ -251,9 +248,6 @@ describe("SetIterator", () => { close() { return; }, - getURL(): string { - return "http://foo.com/bar"; - }, }; const testClient = getClient({}, httpClient);