mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 11:26:42 +00:00
Changes name of emitted event
This commit is contained in:
parent
fe3cc661d3
commit
36055b7c04
@ -52,7 +52,7 @@ export default class TelemetryCriterion extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
emitResult(data, error) {
|
emitResult(data, error) {
|
||||||
this.emit('criterion::Update', {
|
this.emit('criterionUpdated', {
|
||||||
identifier: this.telemetryObjectIdAsString,
|
identifier: this.telemetryObjectIdAsString,
|
||||||
data: data,
|
data: data,
|
||||||
error: error
|
error: error
|
||||||
|
@ -58,7 +58,7 @@ describe("The telemetry criterion", function () {
|
|||||||
openmct
|
openmct
|
||||||
);
|
);
|
||||||
|
|
||||||
telemetryCriterion.on('criterion::Update', mockListener);
|
telemetryCriterion.on('criterionUpdated', mockListener);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user