mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
Loose regex filter for analytics events (#10329)
Allows `Date` objects being sent as attribute values and spaces in event segmentation values GitOrigin-RevId: ce3bf5023941a011ba612e9a3a17b92f76f9860b
This commit is contained in:
@@ -225,6 +225,20 @@ describe('AnalyticsManager', function () {
|
||||
})
|
||||
})
|
||||
|
||||
it('empty space in event segmentation value', async function () {
|
||||
await this.AnalyticsManager.recordEventForUser(
|
||||
this.fakeUserId,
|
||||
'an_event',
|
||||
{ segment: 'a value with spaces' }
|
||||
)
|
||||
sinon.assert.calledWithMatch(this.analyticsEventsQueue.add, 'event', {
|
||||
analyticsId: this.analyticsId,
|
||||
event: 'an_event',
|
||||
segmentation: { segment: 'a value with spaces' },
|
||||
isLoggedIn: true,
|
||||
})
|
||||
})
|
||||
|
||||
it('boolean field in event segmentation', async function () {
|
||||
await this.AnalyticsManager.recordEventForUser(
|
||||
this.fakeUserId,
|
||||
|
||||
Reference in New Issue
Block a user