test/transport.test.js
/**
   * Generate something suitable to be put into the transport.requests object.
   *
   * @param {number} [timeoutAfter]
   *   Timestamp after which this is timed out.
   * @param {object} [requestConfig]
   *   Configuration object relating the request.
   * @return {object}
   *   The dummy request marker object.
   */
Generate something suitable to be put into the transport.requests object.
@param {number} [timeoutAfter]
Timestamp after which this is timed out.
@param {object} [requestConfig]
Configuration object relating the request.
@return {object}
The dummy request marker object.
Generate something suitable to be put into the transport . requests object . @param { number } [ timeoutAfter ] Timestamp after which this is timed out . @param { object } [ requestConfig ] Configuration object relating the request . @return { object } The dummy request marker object .
function generateDummyRequestMarker(timeoutAfter, requestConfig) {
    return {
      requestConfig: requestConfig || {},
      deferred: {
        resolve: jasmine.createSpy(),
        reject: jasmine.createSpy(),
        promise: {}
      },
      timeoutAfter: timeoutAfter || 0
    };
  }
function generateDummyRequestMarker ( timeoutAfter , requestConfig ) { return { requestConfig : requestConfig || { } , deferred : { resolve : jasmine . createSpy ( ) , reject : jasmine . createSpy ( ) , promise : { } } , timeoutAfter : timeoutAfter || 0 } ; }
Generate something suitable to be put into the transport.requests object.
Generate something suitable to be put into the transport . requests object .
// Not needed for any of these tests.