mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 17:52:51 +00:00
fix: Fix event-tracker being passed no options object
Change-type: patch Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
c1748436d8
commit
08b1c90ea1
@ -62,7 +62,7 @@ export class EventTracker {
|
||||
|
||||
public track(
|
||||
event: string,
|
||||
properties: EventTrackProperties | Error,
|
||||
properties: EventTrackProperties | Error = { },
|
||||
) {
|
||||
|
||||
if (properties instanceof Error) {
|
||||
|
@ -87,6 +87,9 @@ describe 'EventTracker', ->
|
||||
supervisorVersion
|
||||
})
|
||||
|
||||
it 'should handle being passed no properties object', ->
|
||||
expect(@eventTracker.track('no-options')).to.not.throw
|
||||
|
||||
describe 'Rate limiting', ->
|
||||
|
||||
it 'should rate limit events of the same type', ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user