templates/protractor.mock.js
function echoRequest(data, echo) {
        return _execute('PUT', '/mocks', {
            identifier: _getIdentifier(data),
            echo: echo || false
        }, 'Could not echo the request');
    }
function echoRequest(data, echo) {
        return _execute('PUT', '/mocks', {
            identifier: _getIdentifier(data),
            echo: echo || false
        }, 'Could not echo the request');
    }
function echoRequest ( data , echo ) { return _execute ( 'PUT' , '/mocks' , { identifier : _getIdentifier ( data ) , echo : echo || false } , 'Could not echo the request' ) ; }
Sets the given echo indicator for the mock matching the identifier.
@param {Object | String} data The data object containing all the information for an expression or the name of the mock.
@param {boolean} echo The indicator echo request.
@return {Promise} the promise.
Sets the given echo indicator for the mock matching the identifier .