test(core): Add community+ register tracking test (#11133)

This commit is contained in:
Csaba Tuncsik 2024-10-08 09:40:41 +02:00 committed by GitHub
parent 87a0b68f90
commit 05d267954c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1057,4 +1057,20 @@ describe('TelemetryEventRelay', () => {
);
});
});
describe('Community+ registered', () => {
it('should track `license-community-plus-registered` event', () => {
const event: RelayEventMap['license-community-plus-registered'] = {
email: 'user@example.com',
licenseKey: 'license123',
};
eventService.emit('license-community-plus-registered', event);
expect(telemetry.track).toHaveBeenCalledWith('User registered for license community plus', {
email: 'user@example.com',
licenseKey: 'license123',
});
});
});
});