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 () {