Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshuChaudhari committed Apr 23, 2024
1 parent fdbce09 commit b35e01a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/__tests__/applepay.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ global.atob = atob;

describe("applepay", () => {
describe("Config", () => {
it.skip("GetAppelPayConfig", async () => {
it("GetAppelPayConfig", async () => {
const applepay = Applepay();
const config = await applepay.config();
expect(config).toEqual({
Expand Down Expand Up @@ -87,7 +87,9 @@ describe("applepay", () => {
});
} catch (err) {
expect(err.name).toBe("PayPalApplePayError");
expect(err.message.includes("NOT_ENABLED_FOR_APPLE_PAY")).toBe(true);
expect(
err.message.includes("APPLE_PAY_MERCHANT_SESSION_VALIDATION_ERROR")
).toBe(true);
expect(err.paypalDebugId).toEqual(expect.any(String));
}
});
Expand Down

0 comments on commit b35e01a

Please sign in to comment.