From 9b21b0b7f2a8d797744392c33386820858d45f81 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 26 Feb 2016 16:17:33 -0800 Subject: [PATCH] [Templates] Update mct-container spec ...to reflect change to template over templateUrl --- .../general/test/directives/MCTContainerSpec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/commonUI/general/test/directives/MCTContainerSpec.js b/platform/commonUI/general/test/directives/MCTContainerSpec.js index 2d0ce444da..0c25e6c645 100644 --- a/platform/commonUI/general/test/directives/MCTContainerSpec.js +++ b/platform/commonUI/general/test/directives/MCTContainerSpec.js @@ -30,12 +30,12 @@ define( var testContainers = [ { bundle: { path: "a", resources: "b" }, - templateUrl: "c/template.html", + template: "
foo
", key: "abc" }, { bundle: { path: "x", resources: "y" }, - templateUrl: "z/template.html", + template: "bar", key: "xyz", attributes: [ "someAttr", "someOtherAttr" ] } @@ -55,15 +55,15 @@ define( }); it("chooses a template based on key", function () { - expect(mctContainer.templateUrl( + expect(mctContainer.template( undefined, { key: "abc" } - )).toEqual("a/b/c/template.html"); + )).toEqual(testContainers[0].template); - expect(mctContainer.templateUrl( + expect(mctContainer.template( undefined, { key: "xyz" } - )).toEqual("x/y/z/template.html"); + )).toEqual(testContainers[1].template); }); it("copies attributes needed by the container", function () {