[Time Conductor] Add test case for formats

Add test case to TimeRangeController to reflect that it responds
to changes in format selection.
This commit is contained in:
Victor Woeltjen 2015-10-27 15:57:44 -07:00
parent 44fc9423df
commit 8ba112498b

View File

@ -191,6 +191,13 @@ define(
});
it("watches for changes in format selection", function () {
expect(mockFormatService.getFormat)
.not.toHaveBeenCalledWith('test-format');
fireWatch("parameters.format", 'test-format');
expect(mockFormatService.getFormat)
.toHaveBeenCalledWith('test-format');
});
});