[Build] Update mct-include, mct-representation specs

...to reflect changes in TemplateLinker API allowing
templates to be explicitly included.
This commit is contained in:
Victor Woeltjen
2016-01-29 11:27:08 -08:00
parent 38e703a121
commit 507f2391ff
2 changed files with 6 additions and 6 deletions

View File

@ -91,12 +91,12 @@ define(
mockScope.key = 'abc'; mockScope.key = 'abc';
fireWatch('key', mockScope.key); fireWatch('key', mockScope.key);
expect(mockChangeTemplate) expect(mockChangeTemplate)
.toHaveBeenCalledWith(testUrls.abc); .toHaveBeenCalledWith(testTemplates[0]);
mockScope.key = 'xyz'; mockScope.key = 'xyz';
fireWatch('key', mockScope.key); fireWatch('key', mockScope.key);
expect(mockChangeTemplate) expect(mockChangeTemplate)
.toHaveBeenCalledWith(testUrls.xyz); .toHaveBeenCalledWith(testTemplates[1]);
}); });
}); });

View File

@ -174,7 +174,7 @@ define(
fireWatch('domainObject', mockDomainObject); fireWatch('domainObject', mockDomainObject);
expect(mockChangeTemplate) expect(mockChangeTemplate)
.toHaveBeenCalledWith(testUrls.abc); .toHaveBeenCalledWith(testRepresentations[0]);
}); });
it("recognizes keys for views", function () { it("recognizes keys for views", function () {
@ -186,7 +186,7 @@ define(
fireWatch('domainObject', mockDomainObject); fireWatch('domainObject', mockDomainObject);
expect(mockChangeTemplate) expect(mockChangeTemplate)
.toHaveBeenCalledWith(testUrls.xyz); .toHaveBeenCalledWith(testViews[1]);
}); });
it("does not load templates until there is an object", function () { it("does not load templates until there is an object", function () {
@ -196,13 +196,13 @@ define(
fireWatch('key', mockScope.key); fireWatch('key', mockScope.key);
expect(mockChangeTemplate) expect(mockChangeTemplate)
.not.toHaveBeenCalledWith(jasmine.any(String)); .not.toHaveBeenCalledWith(jasmine.any(Object));
mockScope.domainObject = mockDomainObject; mockScope.domainObject = mockDomainObject;
fireWatch('domainObject', mockDomainObject); fireWatch('domainObject', mockDomainObject);
expect(mockChangeTemplate) expect(mockChangeTemplate)
.toHaveBeenCalledWith(jasmine.any(String)); .toHaveBeenCalledWith(jasmine.any(Object));
}); });
it("loads declared capabilities", function () { it("loads declared capabilities", function () {