mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
test(core): Add community+ register tracking test (#11133)
This commit is contained in:
parent
87a0b68f90
commit
05d267954c
|
@ -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',
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue