[Time Conductor] Update specs

...to reflect changes to how unspecified versus unknown formats
are handled.
This commit is contained in:
Victor Woeltjen
2015-10-30 13:53:33 -07:00
parent 7f571415dc
commit f42498ab60
3 changed files with 26 additions and 1 deletions

View File

@ -137,6 +137,13 @@ define(
.toHaveBeenCalledWith(mockScope.structure.format);
});
it("throws an error for unknown formats", function () {
mockFormatService.getFormat.andReturn(undefined);
expect(function () {
fireWatch("structure.format", "some-format");
}).toThrow();
});
describe("using the obtained format", function () {
var testValue = 1234321,
testText = "some text";