From e7598adcee071d6adf704684bea0cda68a8ba9c8 Mon Sep 17 00:00:00 2001 From: Sarah Hale Date: Wed, 24 Jun 2015 10:40:03 -0700 Subject: [PATCH] [Events] View policy test Created a test for the MessagesViewPolicy. #18. --- platform/features/events/src/policies/MessagesViewPolicy.js | 2 ++ platform/features/events/test/suite.json | 1 + 2 files changed, 3 insertions(+) diff --git a/platform/features/events/src/policies/MessagesViewPolicy.js b/platform/features/events/src/policies/MessagesViewPolicy.js index 45b2ef5b27..b31ca94374 100644 --- a/platform/features/events/src/policies/MessagesViewPolicy.js +++ b/platform/features/events/src/policies/MessagesViewPolicy.js @@ -51,6 +51,8 @@ define( if (domainObject.getModel().type !== 'eventGenerator') { return false; } + + // TODO: This may later apply to more types beyond just eventGenerator. } // Like all policies, allow by default. diff --git a/platform/features/events/test/suite.json b/platform/features/events/test/suite.json index 150a4f853c..67076cd4cc 100644 --- a/platform/features/events/test/suite.json +++ b/platform/features/events/test/suite.json @@ -3,5 +3,6 @@ "EventListController", "EventListPopulator", "MCTDataTable", + "MessagesViewPolicy", "RangeColumn" ] \ No newline at end of file