[Events] RT Messages policy test

The view policy test for real time Messages
now works. #26.
This commit is contained in:
Sarah Hale 2015-06-26 15:17:17 -07:00
parent 41e75d7494
commit 4e03d7b29b

View File

@ -39,9 +39,7 @@ define(
policy;
beforeEach(function () {
testView = { key: "string" };
testMetadata = {};
testMetadata = {ranges};
mockDomainObject = jasmine.createSpyObj(
'domainObject',
@ -58,7 +56,7 @@ define(
mockDomainObject.getCapability.andCallFake(function (c) {
return c === 'telemetry' ? mockTelemetry : undefined;
});
mockTelemetry.getMetadata.andReturn(testMetadata);
mockTelemetry.getMetadata = testMetadata;
policy = new RTMessagesViewPolicy();
});