[Containment] Update failing specs

Update failing specs after changes for composition
policy to enforce containment rules, WTD-962.
This commit is contained in:
Victor Woeltjen
2015-04-10 17:47:49 -07:00
parent 3e972650c7
commit fa5bc326e1
2 changed files with 32 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ define(
});
it("watches its passed key to choose a template", function () {
mctControl.controller(mockScope);
mctControl.link(mockScope);
expect(mockScope.$watch).toHaveBeenCalledWith(
"key",
@@ -43,7 +43,7 @@ define(
});
it("changes its template dynamically", function () {
mctControl.controller(mockScope);
mctControl.link(mockScope);
mockScope.key = "xyz";
mockScope.$watch.mostRecentCall.args[1]("xyz");