mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 13:48:12 +00:00
[Time Conductor] Update ConductorRepresenter spec
...to reflect that TimeConductor exposes whole domain metadata, not just key.
This commit is contained in:
@ -129,7 +129,7 @@ define(
|
|||||||
it("exposes conductor state in scope", function () {
|
it("exposes conductor state in scope", function () {
|
||||||
mockConductor.displayStart.andReturn(1977);
|
mockConductor.displayStart.andReturn(1977);
|
||||||
mockConductor.displayEnd.andReturn(1984);
|
mockConductor.displayEnd.andReturn(1984);
|
||||||
mockConductor.domain.andReturn('d');
|
mockConductor.domain.andReturn({ key: 'd' });
|
||||||
representer.represent(testViews[0], {});
|
representer.represent(testViews[0], {});
|
||||||
|
|
||||||
expect(mockNewScope.ngModel.conductor).toEqual({
|
expect(mockNewScope.ngModel.conductor).toEqual({
|
||||||
@ -219,7 +219,7 @@ define(
|
|||||||
representer.represent(testViews[0], null);
|
representer.represent(testViews[0], null);
|
||||||
|
|
||||||
expect(mockNewScope.ngModel.domain)
|
expect(mockNewScope.ngModel.domain)
|
||||||
.toEqual(mockConductor.domain());
|
.toEqual(mockConductor.domain().key);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("exposes domain options in scope", function () {
|
it("exposes domain options in scope", function () {
|
||||||
|
Reference in New Issue
Block a user