Skip to content

Commit

Permalink
remove getURL from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpaterson committed Dec 18, 2024
1 parent a6c069a commit 4c577b3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 34 deletions.
6 changes: 0 additions & 6 deletions __tests__/functional/client-configuration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion __tests__/functional/feed-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const mockHttpClient = {
.fn()
.mockImplementation(() => Promise.resolve({ ...mockHttpResponse })),
close: jest.fn(),
getURL: jest.fn(() => "bar"),
};

const defaultConfig: FeedClientConfiguration = {
Expand Down
6 changes: 0 additions & 6 deletions __tests__/integration/client-last-txn-tracking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ describe("last_txn_ts tracking in client", () => {
},

close() {},
getURL(): string {
return "http://foo.com/bar";
},
};

const myClient = getClient(
Expand Down Expand Up @@ -66,9 +63,6 @@ describe("last_txn_ts tracking in client", () => {
},

close() {},
getURL(): string {
return "http://foo.com/bar";
},
};

const myClient = getClient(
Expand Down
15 changes: 0 additions & 15 deletions __tests__/integration/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ describe("query", () => {
return dummyResponse;
},
close() {},
getURL(): string {
return "http://foo.com/bar";
},
};
const clientConfiguration: Partial<ClientConfiguration> = {
linearized: true,
Expand All @@ -166,9 +163,6 @@ describe("query", () => {
return dummyResponse;
},
close() {},
getURL() {
return "http://foo.com/bar";
},
};

let clientConfiguration: Partial<ClientConfiguration> = {
Expand Down Expand Up @@ -277,9 +271,6 @@ describe("query", () => {
);
},
close() {},
getURL() {
return "http://foo.com/bar";
},
};
badClient = getClient({}, httpClient);
await badClient.query(fql`"dummy"`);
Expand Down Expand Up @@ -388,9 +379,6 @@ describe("query", () => {
return httpClient.request(badRequest);
},
close() {},
getURL() {
return "http://foo.com/bar";
},
};

const badClient = getClient({}, badHTTPClient);
Expand All @@ -412,9 +400,6 @@ describe("query", () => {
throw new Error("boom!");
},
close() {},
getURL(): string {
return "http://foo.com/bar";
},
};
const badClient = getClient(
{
Expand Down
6 changes: 0 additions & 6 deletions __tests__/integration/set.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ describe("SetIterator", () => {
close() {
return;
},
getURL(): string {
return "http://foo.com/bar";
},
};
const testClient = getClient({}, httpClient);

Expand Down Expand Up @@ -251,9 +248,6 @@ describe("SetIterator", () => {
close() {
return;
},
getURL(): string {
return "http://foo.com/bar";
},
};
const testClient = getClient({}, httpClient);

Expand Down

0 comments on commit 4c577b3

Please sign in to comment.