mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 13:18:15 +00:00
[Build] Update mct-include, mct-representation specs
...to reflect changes in TemplateLinker API allowing templates to be explicitly included.
This commit is contained in:
@ -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]);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -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 () {
|
||||||
|
Reference in New Issue
Block a user