mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Enterprise manager can bulk edit products
This commit is contained in:
@@ -202,8 +202,8 @@ describe("AdminBulkProductsCtrl", function(){
|
||||
|
||||
it("gets a list of suppliers and then resets products with a list of data", function(){
|
||||
httpBackend.expectGET('/api/users/authorise_api?token=api_key').respond( { "success": "Use of API Authorised" } );
|
||||
httpBackend.expectGET('/api/enterprises?template=bulk_index;q[is_primary_producer_eq]=true').respond("list of suppliers");
|
||||
httpBackend.expectGET('/api/products?template=bulk_index').respond("list of products");
|
||||
httpBackend.expectGET('/api/enterprises/managed?template=bulk_index&q[is_primary_producer_eq]=true').respond("list of suppliers");
|
||||
httpBackend.expectGET('/api/products/managed?template=bulk_index').respond("list of products");
|
||||
spyOn(scope, "resetProducts");
|
||||
scope.initialise('api_key');
|
||||
httpBackend.flush();
|
||||
|
||||
Reference in New Issue
Block a user