mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
[Table] #742 Fixed digest-related bug in RTTelemetryController
Fixed failing test
This commit is contained in:
@ -56,6 +56,7 @@ define(
|
||||
'$on',
|
||||
'$watch',
|
||||
'$watchCollection',
|
||||
'$digest',
|
||||
'$broadcast'
|
||||
]);
|
||||
mockScope.$on.andCallFake(function (expression, callback){
|
||||
@ -131,6 +132,7 @@ define(
|
||||
|
||||
it('updates table with new streaming telemetry', function () {
|
||||
controller.subscribe();
|
||||
mockScope.rows = [];
|
||||
mockTelemetryHandler.handle.mostRecentCall.args[1]();
|
||||
expect(mockScope.$broadcast).toHaveBeenCalledWith('add:row', 0);
|
||||
});
|
||||
|
Reference in New Issue
Block a user