Skip to content

Commit

Permalink
remove commented tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Jun 10, 2024
1 parent bcfff27 commit ae10b5f
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions arcjet/test/index.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,53 +166,6 @@ class ArcjetInvalidDecision extends ArcjetDecision {

const log = new Logger({ level: "info" });

// describe("defaultBaseUrl", () => {
// test("uses process.env.ARCJET_BASE_URL if set and allowed", () => {
// jest.replaceProperty(process, "env", {
// NODE_ENV: "production",
// ARCJET_BASE_URL: "https://decide.arcjet.orb.local:4082",
// });
// expect(defaultBaseUrl()).toEqual("https://decide.arcjet.orb.local:4082");
// });

// test("does not use process.env.ARCJET_BASE_URL if not allowed", () => {
// jest.replaceProperty(process, "env", {
// NODE_ENV: "production",
// ARCJET_BASE_URL: "http://localhost:1234",
// });
// expect(defaultBaseUrl()).toEqual("https://decide.arcjet.com");
// });

// test("does not use process.env.ARCJET_BASE_URL if empty string", () => {
// jest.replaceProperty(process, "env", {
// NODE_ENV: "production",
// ARCJET_BASE_URL: "",
// });
// expect(defaultBaseUrl()).toEqual("https://decide.arcjet.com");
// });

// test("uses production url if process.env.ARCJET_BASE_URL not set", () => {
// expect(defaultBaseUrl()).toEqual("https://decide.arcjet.com");
// });

// // TODO(#90): Remove these tests once production conditional is removed
// test("uses process.env.ARCJET_BASE_URL if set (in development)", () => {
// jest.replaceProperty(process, "env", {
// NODE_ENV: "development",
// ARCJET_BASE_URL: "http://localhost:1234",
// });
// expect(defaultBaseUrl()).toEqual("http://localhost:1234");
// });

// test("does not use process.env.ARCJET_BASE_URL if empty string (in development)", () => {
// jest.replaceProperty(process, "env", {
// NODE_ENV: "development",
// ARCJET_BASE_URL: "",
// });
// expect(defaultBaseUrl()).toEqual("https://decide.arcjet.com");
// });
// });

describe("createRemoteClient", () => {
const defaultRemoteClientOptions = {
baseUrl: "",
Expand Down

0 comments on commit ae10b5f

Please sign in to comment.