mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
asserted the confirmation msg in test
This commit is contained in:
@@ -822,6 +822,7 @@ describe "AdminProductEditCtrl", ->
|
||||
$scope.dirtyProducts = {}
|
||||
$httpBackend.expectDELETE("/api/v0/products/13").respond 200, "data"
|
||||
$scope.deleteProduct $scope.products[1]
|
||||
expect(window.confirm).toHaveBeenCalledWith "Are you sure?"
|
||||
$httpBackend.flush()
|
||||
|
||||
it "removes the specified product from both $scope.products and $scope.dirtyProducts (if it exists there)", ->
|
||||
|
||||
Reference in New Issue
Block a user