diff --git a/test/integration/tests/card-fields/eligibility.js b/test/integration/tests/card-fields/eligibility.js deleted file mode 100644 index c1fef92d8c..0000000000 --- a/test/integration/tests/card-fields/eligibility.js +++ /dev/null @@ -1,55 +0,0 @@ -/* @flow */ - -import { FUNDING } from "@paypal/sdk-constants/src"; - -import { - createTestContainer, - destroyTestContainer, - mockProp, - assert, -} from "../common"; - -describe.only(`paypal card fields component`, () => { - beforeEach(() => { - createTestContainer(); - }); - - afterEach(() => { - destroyTestContainer(); - }); - - it(`should not be eligible or render when branded is true`, (done) => { - const fundingSource = FUNDING.CARD; - mockProp(window.__TEST_FUNDING_ELIGIBILITY__, fundingSource, { - eligible: true, - branded: true, - }); - - const cardButton = window.paypal.Buttons({ - fundingSource, - }); - - const cardFields = window.paypal.CardFields({}); - - assert.equal(cardFields.isEligible(), false); - done(); - }); - - it(`should be eligible when branded is false`, (done) => { - const fundingSource = FUNDING.CARD; - mockProp(window.__TEST_FUNDING_ELIGIBILITY__, fundingSource, { - eligible: true, - branded: false, - }); - window.__COMPONENTS__ = ["buttons", "card-fields"]; - - const cardButton = window.paypal.Buttons({ - fundingSource, - }); - - const cardFields = window.paypal.CardFields({}); - - assert.equal(cardFields.isEligible(), true); - done(); - }); -}); diff --git a/test/integration/tests/card-fields/index.js b/test/integration/tests/card-fields/index.js deleted file mode 100644 index 5a69e0fb53..0000000000 --- a/test/integration/tests/card-fields/index.js +++ /dev/null @@ -1,3 +0,0 @@ -/* @flow */ - -import "./eligibility"; diff --git a/test/integration/tests/index.js b/test/integration/tests/index.js index 2c1414d660..84dbe0bf47 100644 --- a/test/integration/tests/index.js +++ b/test/integration/tests/index.js @@ -10,4 +10,3 @@ import "./security"; import "./funding/paylater"; import "./funding/applepay"; import "./funding/venmo"; -import "./card-fields"; diff --git a/test/paypal.js b/test/paypal.js index 5ce98dd47e..35ec0c9118 100644 --- a/test/paypal.js +++ b/test/paypal.js @@ -7,7 +7,6 @@ import * as paypalWallet from "../src/interface/wallet"; // eslint-disable-line import * as paypalMarks from "../src/interface/marks"; // eslint-disable-line import/no-namespace import * as paypalFields from "../src/interface/fields"; // eslint-disable-line import/no-namespace import * as paypalPaymentFields from "../src/interface/payment-fields"; // eslint-disable-line import/no-namespace -import * as paypalCardFields from "../src/interface/card-fields"; // eslint-disable-line import/no-namespace // the enable-funding=venmo flag is temporarily needed for the venmo experiment // the enable-funding=applepay flag is needed for applepay vertical stack and standalone buttons to render @@ -35,8 +34,4 @@ setupSDK([ name: "paypal-fields", requirer: () => ({ ...paypalFields, ...paypalPaymentFields }), }, - { - name: "paypal-card-fields", - requirer: () => paypalCardFields, - }, ]);