Changes name of emitted event

This commit is contained in:
Joshi 2020-01-09 06:44:19 -08:00
parent fe3cc661d3
commit 36055b7c04
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default class TelemetryCriterion extends EventEmitter {
}
emitResult(data, error) {
this.emit('criterion::Update', {
this.emit('criterionUpdated', {
identifier: this.telemetryObjectIdAsString,
data: data,
error: error

View File

@ -58,7 +58,7 @@ describe("The telemetry criterion", function () {
openmct
);
telemetryCriterion.on('criterion::Update', mockListener);
telemetryCriterion.on('criterionUpdated', mockListener);
});