diff --git a/spec/javascripts/unit/bulk_order_management_spec.js.coffee b/spec/javascripts/unit/bulk_order_management_spec.js.coffee index 3e1c35f2d1..4a189c7563 100644 --- a/spec/javascripts/unit/bulk_order_management_spec.js.coffee +++ b/spec/javascripts/unit/bulk_order_management_spec.js.coffee @@ -29,9 +29,9 @@ describe "AdminOrderMgmtCtrl", -> scope.initialise "api_key" httpBackend.flush() - expect(scope.suppliers).toEqual [{ id : '', name : 'All' }, 'list of suppliers'] - expect(scope.distributors).toEqual [ { id : '', name : 'All' }, 'list of distributors' ] - expect(scope.orderCycles).toEqual [ { id : '', name : 'All' }, 'oc1', 'oc2', 'oc3' ] + expect(scope.suppliers).toEqual [{ id : '0', name : 'All' }, 'list of suppliers'] + expect(scope.distributors).toEqual [ { id : '0', name : 'All' }, 'list of distributors' ] + expect(scope.orderCycles).toEqual [ { id : '0', name : 'All' }, 'oc1', 'oc2', 'oc3' ] expect(scope.initialiseVariables.calls.length).toBe 1 expect(scope.fetchOrders.calls.length).toBe 1