[Containment] Test containment tables

Test tables which support efficient lookup of composition policy,
WTD-962.
This commit is contained in:
Victor Woeltjen
2015-04-10 18:29:42 -07:00
parent e3a44356a8
commit c59f13504e
3 changed files with 123 additions and 0 deletions

View File

@ -48,6 +48,8 @@ define(
policy = new CompositionPolicy(mockInjector);
});
// Test basic composition policy here; test more closely at
// the unit level in ContainmentTable for 'has' support, et al
it("enforces containment rules defined by types", function () {
expect(policy.allow(mockTypes[0], mockTypes[1]))
.toBeTruthy();