[Time Conductor] Update TimeConductor spec

...to reflect that whole domain metadata, not just key, is exposed.
This commit is contained in:
Victor Woeltjen 2015-10-27 15:40:34 -07:00
parent 5ff2e6b652
commit ce5a650d8c

View File

@ -59,12 +59,12 @@ define(
});
it("exposes the current domain choice", function () {
expect(conductor.domain()).toEqual(testDomains[0].key);
expect(conductor.domain()).toEqual(testDomains[0]);
});
it("allows the domain choice to be changed", function () {
conductor.domain(testDomains[1].key);
expect(conductor.domain()).toEqual(testDomains[1].key);
expect(conductor.domain()).toEqual(testDomains[1]);
});
it("throws an error on attempts to set an invalid domain", function () {