From 507f2391ff0b661836e9e022f1c4748ea3523e6c Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 29 Jan 2016 11:27:08 -0800 Subject: [PATCH] [Build] Update mct-include, mct-representation specs ...to reflect changes in TemplateLinker API allowing templates to be explicitly included. --- platform/representation/test/MCTIncludeSpec.js | 4 ++-- platform/representation/test/MCTRepresentationSpec.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/representation/test/MCTIncludeSpec.js b/platform/representation/test/MCTIncludeSpec.js index 94dc62fd0a..dc1a139968 100644 --- a/platform/representation/test/MCTIncludeSpec.js +++ b/platform/representation/test/MCTIncludeSpec.js @@ -91,12 +91,12 @@ define( mockScope.key = 'abc'; fireWatch('key', mockScope.key); expect(mockChangeTemplate) - .toHaveBeenCalledWith(testUrls.abc); + .toHaveBeenCalledWith(testTemplates[0]); mockScope.key = 'xyz'; fireWatch('key', mockScope.key); expect(mockChangeTemplate) - .toHaveBeenCalledWith(testUrls.xyz); + .toHaveBeenCalledWith(testTemplates[1]); }); }); diff --git a/platform/representation/test/MCTRepresentationSpec.js b/platform/representation/test/MCTRepresentationSpec.js index 141f2227f3..6e26deec10 100644 --- a/platform/representation/test/MCTRepresentationSpec.js +++ b/platform/representation/test/MCTRepresentationSpec.js @@ -174,7 +174,7 @@ define( fireWatch('domainObject', mockDomainObject); expect(mockChangeTemplate) - .toHaveBeenCalledWith(testUrls.abc); + .toHaveBeenCalledWith(testRepresentations[0]); }); it("recognizes keys for views", function () { @@ -186,7 +186,7 @@ define( fireWatch('domainObject', mockDomainObject); expect(mockChangeTemplate) - .toHaveBeenCalledWith(testUrls.xyz); + .toHaveBeenCalledWith(testViews[1]); }); it("does not load templates until there is an object", function () { @@ -196,13 +196,13 @@ define( fireWatch('key', mockScope.key); expect(mockChangeTemplate) - .not.toHaveBeenCalledWith(jasmine.any(String)); + .not.toHaveBeenCalledWith(jasmine.any(Object)); mockScope.domainObject = mockDomainObject; fireWatch('domainObject', mockDomainObject); expect(mockChangeTemplate) - .toHaveBeenCalledWith(jasmine.any(String)); + .toHaveBeenCalledWith(jasmine.any(Object)); }); it("loads declared capabilities", function () {