mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
Merge remote-tracking branch 'origin/open742'
This commit is contained in:
commit
d30532a8bc
@ -89,9 +89,9 @@ define(
|
||||
datum = self.handle.getDatum(telemetryObject);
|
||||
if (datum) {
|
||||
row = self.table.getRowValues(telemetryObject, datum);
|
||||
self.$scope.rows = self.$scope.rows || [];
|
||||
if (!self.$scope.rows){
|
||||
self.$scope.rows = [row];
|
||||
self.$scope.$digest();
|
||||
} else {
|
||||
self.$scope.rows.push(row);
|
||||
self.$scope.$broadcast('add:row',
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user