[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; 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();
}); });