mirror of
https://github.com/nasa/openmct.git
synced 2025-04-13 06:03:06 +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:
parent
38e703a121
commit
507f2391ff
@ -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]);
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user