Skip to content

Commit 32d21bd

Browse files
committed
chore(refactor): fix test
1 parent 0dc5979 commit 32d21bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: test/integration/tests/button/eligibility.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ describe("venmo button eligibility", () => {
275275
test: {
276276
onRender: expect("onRender", ({ xprops, fundingSources }) => {
277277
const {
278-
experiment: { enableVenmo, venmoEnableWebOnNonNativeBrowser },
278+
experiment: { enableVenmo },
279279
} = xprops;
280-
if (!venmoEnableWebOnNonNativeBrowser && enableVenmo) {
280+
if (enableVenmo) {
281281
throw new Error(
282282
`Expected venmo experiment to be ineligible: ${JSON.stringify(
283283
xprops.experiment

Diff for: test/integration/tests/funding/venmo/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe(`venmo desktop web button test `, () => {
9696
destroyTestContainer();
9797
});
9898

99-
it(`should not display button when it's passed in as instrument on desktop web`, (done) => {
99+
it(`should display button when it's passed in as instrument on desktop web`, (done) => {
100100
mockProp(
101101
window.__TEST_FUNDING_ELIGIBILITY__[fundingSource],
102102
"eligible",
@@ -106,7 +106,7 @@ describe(`venmo desktop web button test `, () => {
106106
const paypalButtons = window.paypal.Buttons({
107107
fundingSource,
108108
});
109-
assert.equal(paypalButtons.isEligible(), false);
109+
assert.equal(paypalButtons.isEligible(), true);
110110
done();
111111
});
112112
});

0 commit comments

Comments
 (0)