[Forms] Prune obsolete specs

Prune obsolete specs after changes made to support
integration of forms component, WTD-593.
This commit is contained in:
Victor Woeltjen
2014-12-03 17:26:02 -08:00
parent 5aff4e3777
commit 6fb5da1b35
5 changed files with 62 additions and 129 deletions

View File

@@ -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