Merge pull request #4138 from overleaf/ab-recurly-webhook-analytics
Send analytics events and user properties from Recurly webhook GitOrigin-RevId: 3227dd9e42bad61e17d2ca471f6d68adb7212dab
This commit is contained in:
committed by
Copybot
parent
c634f51eee
commit
ca1e828ea7
@@ -142,6 +142,7 @@ describe('SubscriptionController', function () {
|
||||
'./Errors': SubscriptionErrors,
|
||||
'../Analytics/AnalyticsManager': (this.AnalyticsManager = {
|
||||
recordEvent: sinon.stub(),
|
||||
setUserProperty: sinon.stub(),
|
||||
}),
|
||||
'../SplitTests/SplitTestHandler': (this.SplitTestHandler = {
|
||||
getTestSegmentation: () => {},
|
||||
@@ -575,8 +576,15 @@ describe('SubscriptionController', function () {
|
||||
this.req = {
|
||||
body: {
|
||||
expired_subscription_notification: {
|
||||
account: {
|
||||
account_code: this.user._id,
|
||||
},
|
||||
subscription: {
|
||||
uuid: this.activeRecurlySubscription.uuid,
|
||||
plan: {
|
||||
plan_code: 'collaborator',
|
||||
state: 'active',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -640,8 +648,15 @@ describe('SubscriptionController', function () {
|
||||
this.req = {
|
||||
body: {
|
||||
renewed_subscription_notification: {
|
||||
account: {
|
||||
account_code: this.user._id,
|
||||
},
|
||||
subscription: {
|
||||
uuid: this.activeRecurlySubscription.uuid,
|
||||
plan: {
|
||||
plan_code: 'collaborator',
|
||||
state: 'active',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user