ocd
This commit is contained in:
parent
508290afaf
commit
eff4886cd8
14 changed files with 16 additions and 16 deletions
|
@ -3,6 +3,7 @@
|
||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var contentDisposition = require('content-disposition');
|
||||||
var ensureErrorHandler = require('error-inject');
|
var ensureErrorHandler = require('error-inject');
|
||||||
var getType = require('mime-types').contentType;
|
var getType = require('mime-types').contentType;
|
||||||
var onFinish = require('on-finished');
|
var onFinish = require('on-finished');
|
||||||
|
@ -15,7 +16,6 @@ var assert = require('assert');
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var vary = require('vary');
|
var vary = require('vary');
|
||||||
var contentDisposition = require('content-disposition');
|
|
||||||
var basename = path.basename;
|
var basename = path.basename;
|
||||||
var extname = path.extname;
|
var extname = path.extname;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
|
||||||
|
var stderr = require('test-console').stderr;
|
||||||
var request = require('supertest');
|
var request = require('supertest');
|
||||||
var statuses = require('statuses');
|
var statuses = require('statuses');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
var koa = require('..');
|
var koa = require('..');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var stderr = require('test-console').stderr;
|
|
||||||
var AssertionError = assert.AssertionError;
|
var AssertionError = assert.AssertionError;
|
||||||
|
|
||||||
describe('app', function(){
|
describe('app', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var koa = require('../..')
|
|
||||||
var request = require('supertest');
|
var request = require('supertest');
|
||||||
|
var koa = require('../..')
|
||||||
|
|
||||||
describe('ctx.cookies.set()', function(){
|
describe('ctx.cookies.set()', function(){
|
||||||
it('should set an unsigned cookie', function(done){
|
it('should set an unsigned cookie', function(done){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var koa = require('../..');
|
|
||||||
var request = require('supertest');
|
var request = require('supertest');
|
||||||
|
var koa = require('../..');
|
||||||
|
|
||||||
describe('ctx.onerror(err)', function(){
|
describe('ctx.onerror(err)', function(){
|
||||||
it('should respond', function(done){
|
it('should respond', function(done){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var request = require('../context').request;
|
var request = require('../context').request;
|
||||||
|
var assert = require('assert');
|
||||||
|
|
||||||
describe('req.host', function(){
|
describe('req.host', function(){
|
||||||
it('should return host with port', function(){
|
it('should return host with port', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var request = require('../context').request;
|
var request = require('../context').request;
|
||||||
|
var assert = require('assert');
|
||||||
|
|
||||||
describe('req.hostname', function(){
|
describe('req.hostname', function(){
|
||||||
it('should return hostname void of port', function(){
|
it('should return hostname void of port', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var request = require('../context').request;
|
var request = require('../context').request;
|
||||||
|
var assert = require('assert');
|
||||||
|
|
||||||
describe('req.inspect()', function(){
|
describe('req.inspect()', function(){
|
||||||
describe('with no request.req present', function(){
|
describe('with no request.req present', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var request = require('../context').request;
|
var request = require('../context').request;
|
||||||
|
var assert = require('assert');
|
||||||
|
|
||||||
describe('ctx.length', function(){
|
describe('ctx.length', function(){
|
||||||
it('should return length in content-length', function(){
|
it('should return length in content-length', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var request = require('../context').request;
|
var request = require('../context').request;
|
||||||
|
var assert = require('assert');
|
||||||
|
|
||||||
describe('req.type', function(){
|
describe('req.type', function(){
|
||||||
it('should return type void of parameters', function(){
|
it('should return type void of parameters', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var request = require('supertest');
|
|
||||||
var context = require('../context');
|
var context = require('../context');
|
||||||
|
var request = require('supertest');
|
||||||
var koa = require('../..');
|
var koa = require('../..');
|
||||||
|
|
||||||
describe('ctx.attachment([filename])', function(){
|
describe('ctx.attachment([filename])', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
|
||||||
var response = require('../context').response;
|
var response = require('../context').response;
|
||||||
|
var assert = require('assert');
|
||||||
|
|
||||||
describe('res.inspect()', function(){
|
describe('res.inspect()', function(){
|
||||||
describe('with no response.res present', function(){
|
describe('with no response.res present', function(){
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
var fs = require('fs');
|
|
||||||
var should = require('should');
|
|
||||||
var response = require('../context').response;
|
var response = require('../context').response;
|
||||||
|
var should = require('should');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
var fs = require('fs');
|
||||||
|
|
||||||
describe('res.length', function(){
|
describe('res.length', function(){
|
||||||
describe('when Content-Length is defined', function(){
|
describe('when Content-Length is defined', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var Stream = require('stream');
|
|
||||||
var response = require('../context').response;
|
var response = require('../context').response;
|
||||||
|
var Stream = require('stream');
|
||||||
|
|
||||||
describe('res.message', function(){
|
describe('res.message', function(){
|
||||||
it('should return the response status message', function(){
|
it('should return the response status message', function(){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
var Stream = require('stream');
|
|
||||||
var response = require('../context').response;
|
var response = require('../context').response;
|
||||||
|
var Stream = require('stream');
|
||||||
|
|
||||||
describe('res.socket', function(){
|
describe('res.socket', function(){
|
||||||
it('should return the request socket object', function(){
|
it('should return the request socket object', function(){
|
||||||
|
|
Loading…
Reference in a new issue