mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Update $qProvider configuration
The default logic for how rejected promises are handled has changed slightly. This reinstates the previous default behaviour.
This commit is contained in:
@@ -49,9 +49,11 @@ describe "permalinkCtrl", ->
|
||||
|
||||
it "does nothing when PermalinkChecker rejects", ->
|
||||
$scope.availability = "Some Availability"
|
||||
deferred.reject()
|
||||
promise = deferred.promise
|
||||
spyOn(PermalinkChecker, "check").and.returnValue promise
|
||||
$scope.$apply Enterprise.permalink = "somethingelse" # Change the permalink
|
||||
try
|
||||
deferred.reject()
|
||||
promise = deferred.promise
|
||||
spyOn(PermalinkChecker, "check").and.returnValue promise
|
||||
$scope.$apply Enterprise.permalink = "somethingelse" # Change the permalink
|
||||
|
||||
expect($scope.availability).toEqual "Some Availability"
|
||||
expect(Enterprise.permalink).toEqual "somethingelse"
|
||||
|
||||
Reference in New Issue
Block a user