Skip to content

Commit

Permalink
fix test for protected export
Browse files Browse the repository at this point in the history
  • Loading branch information
siddy2181 committed Dec 10, 2024
1 parent 7e7a6a7 commit 99836cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/three-domain-secure/interface.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { describe, expect, vi } from "vitest";
import { destroy as zoidDestroy } from "@krakenjs/zoid/src";

import { devEnvOnlyExport } from "../lib";

Check failure on line 12 in src/three-domain-secure/interface.test.js

View workflow job for this annotation

GitHub Actions / main

There should be at least one empty line between import groups

Check failure on line 12 in src/three-domain-secure/interface.test.js

View workflow job for this annotation

GitHub Actions / main

'devEnvOnlyExport' is defined but never used
import { ThreeDomainSecureComponent } from "./component";
import { GraphQLClient, RestClient } from "./api";
import { getFastlaneThreeDS } from "./utils";
Expand All @@ -31,8 +32,8 @@ describe("ThreeDomainSecure interface", () => {
expect(zoidDestroy).toHaveBeenCalledWith(err);
});

it("should create and return instance of ThreeDomainSecureClient", async () => {
vi.mocked(getEnv).mockReturnValue("sandbox");
it("should create and return instance of ThreeDomainSecureClient only on dev environment", async () => {
vi.mocked(getEnv).mockReturnValue("stage");
vi.mocked(getSDKToken).mockReturnValue("test-token");
vi.mocked(getPayPalAPIDomain).mockReturnValue("test-domain");
vi.mocked(getClientID).mockReturnValue("test-client-id");
Expand Down

0 comments on commit 99836cd

Please sign in to comment.