[Forms] Prune obsolete specs
Prune obsolete specs after changes made to support integration of forms component, WTD-593.
This commit is contained in:
@@ -25,7 +25,10 @@ define(
|
||||
}
|
||||
|
||||
beforeEach(function () {
|
||||
mockScope = jasmine.createSpyObj("$scope", [ "$on" ]);
|
||||
mockScope = jasmine.createSpyObj(
|
||||
"$scope",
|
||||
[ "$on", "$watch" ]
|
||||
);
|
||||
mockObjectService = jasmine.createSpyObj(
|
||||
"objectService",
|
||||
[ "getObjects" ]
|
||||
@@ -60,20 +63,6 @@ define(
|
||||
);
|
||||
});
|
||||
|
||||
it("provides a means of changing navigation", function () {
|
||||
// Browse template needs a setNavigation function
|
||||
|
||||
// Verify precondition
|
||||
expect(mockNavigationService.setNavigation)
|
||||
.not.toHaveBeenCalled();
|
||||
|
||||
// Set navigation via controller
|
||||
controller.setNavigation(mockDomainObject);
|
||||
|
||||
expect(mockNavigationService.setNavigation)
|
||||
.toHaveBeenCalledWith(mockDomainObject);
|
||||
});
|
||||
|
||||
it("uses composition to set the navigated object, if there is none", function () {
|
||||
mockRootObject.useCapability.andReturn(mockPromise([
|
||||
mockDomainObject
|
||||
|
||||
Reference in New Issue
Block a user