     update = @utils.actionsMapReturnInfo(delta, orderChanged)
 
     addAction = _.deepClone orderChanged.returnInfo[1]
-    addAction['action'] = 'addReturnInfo'
+    addAction.action = 'addReturnInfo'
 
     expectedUpdate =
       [

    update = @utils.actionsMapDeliveries(delta, orderChanged)

    action = JSON.parse(JSON.stringify(orderChanged.shippingInfo.deliveries[0]))
    action["action"] = "addDelivery"

    expect(update).toEqual [action]

  it "should return required action for syncing parcels (deliveries)", ->

    orderChanged = _.deepClone ORDER


    update = @utils.actionsMapReturnInfo(delta, orderChanged)

    action = _.deepClone orderChanged.returnInfo[0]
    action.action = 'addReturnInfo'

    expect(update).toEqual [action]

