Skip to content

Commit

Permalink
Remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Jul 18, 2023
1 parent ad90bcd commit 6458785
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,6 @@ describe("Smoke test", () => {
jest.unmock("undici");
});

it("should return a ProxyAgent for the httpProxy environment variable", () => {
process.env.HTTP_PROXY = "https://127.0.0.1";
const agent = getProxyAgent();
expect(agent).toBeInstanceOf(ProxyAgent);
});

it("should return a ProxyAgent for the httpsProxy environment variable", () => {
process.env.HTTPS_PROXY = "https://127.0.0.1";
const agent = getProxyAgent();
expect(agent).toBeInstanceOf(ProxyAgent);
});

it("should return undefined if no proxy environment variables are set", () => {
const agent = getProxyAgent();
expect(agent).toBeUndefined();
});

it("happy path with GITHUB_TOKEN", () => {
process.env.GITHUB_TOKEN = "secret123";
process.env.GITHUB_ACTION = "test";
Expand Down

0 comments on commit 6458785

Please sign in to comment.