mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
Revert "Send subscription -> salesforce/v1 links to analytics"
This reverts commit 52c02138f9ef8141850e2f8ce16f2bab1e7463b0. GitOrigin-RevId: 022e828a8e41cc73c4087b94d51fa75dbe6cfdb5
This commit is contained in:
@@ -34,10 +34,6 @@ describe('AnalyticsManager', function () {
|
||||
add: sinon.stub().resolves(),
|
||||
process: sinon.stub().resolves(),
|
||||
}
|
||||
this.analyticsAccountMappingQueue = {
|
||||
add: sinon.stub().resolves(),
|
||||
process: sinon.stub().resolves(),
|
||||
}
|
||||
const self = this
|
||||
this.Queues = {
|
||||
getQueue: queueName => {
|
||||
@@ -50,8 +46,6 @@ describe('AnalyticsManager', function () {
|
||||
return self.onboardingEmailsQueue
|
||||
case 'analytics-user-properties':
|
||||
return self.analyticsUserPropertiesQueue
|
||||
case 'analytics-account-mapping':
|
||||
return self.analyticsAccountMappingQueue
|
||||
default:
|
||||
throw new Error('Unexpected queue name')
|
||||
}
|
||||
@@ -284,24 +278,6 @@ describe('AnalyticsManager', function () {
|
||||
isLoggedIn: true,
|
||||
})
|
||||
})
|
||||
|
||||
it('account mapping', async function () {
|
||||
const message = {
|
||||
source: 'salesforce',
|
||||
sourceEntity: 'account',
|
||||
sourceEntityId: 'abc123abc123abc123',
|
||||
target: 'v1',
|
||||
targetEntity: 'university',
|
||||
targetEntityId: 1,
|
||||
createdAt: '2021-01-01T00:00:00Z',
|
||||
}
|
||||
await this.AnalyticsManager.registerAccountMapping(message)
|
||||
sinon.assert.calledWithMatch(
|
||||
this.analyticsAccountMappingQueue.add,
|
||||
'account-mapping',
|
||||
message
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
describe('AnalyticsIdMiddleware', function () {
|
||||
@@ -323,8 +299,6 @@ describe('AnalyticsManager', function () {
|
||||
return self.onboardingEmailsQueue
|
||||
case 'analytics-user-properties':
|
||||
return self.analyticsUserPropertiesQueue
|
||||
case 'analytics-account-mapping':
|
||||
return self.analyticsAccountMappingQueue
|
||||
default:
|
||||
throw new Error('Unexpected queue name')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user