jaredhanson/chai-oauth2orize-grant

View on GitHub
lib/request.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Creates an instance of `Request`.
 *
 * This class is used as a mock when testing OAuth2orize grants, substituted in
 * place of of a Node's `http.IncomingMessage`.
 *
 * @constructor
 * @api protected
 */
function Request() {
  this.method = 'GET';
  this.url = '/';
  this.headers = {};
}


/**
 * Expose `Request`.
 */
module.exports = Request;