File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -275,9 +275,9 @@ describe("venmo button eligibility", () => {
275
275
test : {
276
276
onRender : expect ( "onRender" , ( { xprops, fundingSources } ) => {
277
277
const {
278
- experiment : { enableVenmo, venmoEnableWebOnNonNativeBrowser } ,
278
+ experiment : { enableVenmo } ,
279
279
} = xprops ;
280
- if ( ! venmoEnableWebOnNonNativeBrowser && enableVenmo ) {
280
+ if ( enableVenmo ) {
281
281
throw new Error (
282
282
`Expected venmo experiment to be ineligible: ${ JSON . stringify (
283
283
xprops . experiment
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ describe(`venmo desktop web button test `, () => {
96
96
destroyTestContainer ( ) ;
97
97
} ) ;
98
98
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 ) => {
100
100
mockProp (
101
101
window . __TEST_FUNDING_ELIGIBILITY__ [ fundingSource ] ,
102
102
"eligible" ,
@@ -106,7 +106,7 @@ describe(`venmo desktop web button test `, () => {
106
106
const paypalButtons = window . paypal . Buttons ( {
107
107
fundingSource,
108
108
} ) ;
109
- assert . equal ( paypalButtons . isEligible ( ) , false ) ;
109
+ assert . equal ( paypalButtons . isEligible ( ) , true ) ;
110
110
done ( ) ;
111
111
} ) ;
112
112
} ) ;
You can’t perform that action at this time.
0 commit comments