[Templates] Exercise selection method
...add to TimelineSwimlanePopulator to reflect changes to time at which selection object may become available as a consequence to changes in the way templates are normally loaded. #673
This commit is contained in:
@@ -150,6 +150,15 @@ define(
|
||||
expect(mockSelection.proxy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("allows selection object to be changed", function () {
|
||||
var mockNewSelectionObject = jasmine.createSpyObj(
|
||||
'new-selection',
|
||||
['get', 'select', 'proxy']
|
||||
);
|
||||
populator.selection(mockNewSelectionObject);
|
||||
expect(mockNewSelectionObject.proxy)
|
||||
.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user