mirror of
https://github.com/nasa/openmct.git
synced 2025-01-21 03:55:31 +00:00
[Events] RT Messages policy test
The view policy test for real time Messages now works. #26.
This commit is contained in:
parent
41e75d7494
commit
4e03d7b29b
@ -39,9 +39,7 @@ define(
|
|||||||
policy;
|
policy;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
testMetadata = {ranges};
|
||||||
testView = { key: "string" };
|
|
||||||
testMetadata = {};
|
|
||||||
|
|
||||||
mockDomainObject = jasmine.createSpyObj(
|
mockDomainObject = jasmine.createSpyObj(
|
||||||
'domainObject',
|
'domainObject',
|
||||||
@ -58,7 +56,7 @@ define(
|
|||||||
mockDomainObject.getCapability.andCallFake(function (c) {
|
mockDomainObject.getCapability.andCallFake(function (c) {
|
||||||
return c === 'telemetry' ? mockTelemetry : undefined;
|
return c === 'telemetry' ? mockTelemetry : undefined;
|
||||||
});
|
});
|
||||||
mockTelemetry.getMetadata.andReturn(testMetadata);
|
mockTelemetry.getMetadata = testMetadata;
|
||||||
|
|
||||||
policy = new RTMessagesViewPolicy();
|
policy = new RTMessagesViewPolicy();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user