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.
|
||||
*/
|
||||
|
||||
var contentDisposition = require('content-disposition');
|
||||
var ensureErrorHandler = require('error-inject');
|
||||
var getType = require('mime-types').contentType;
|
||||
var onFinish = require('on-finished');
|
||||
|
@ -15,7 +16,6 @@ var assert = require('assert');
|
|||
var http = require('http');
|
||||
var path = require('path');
|
||||
var vary = require('vary');
|
||||
var contentDisposition = require('content-disposition');
|
||||
var basename = path.basename;
|
||||
var extname = path.extname;
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
var stderr = require('test-console').stderr;
|
||||
var request = require('supertest');
|
||||
var statuses = require('statuses');
|
||||
var assert = require('assert');
|
||||
var http = require('http');
|
||||
var koa = require('..');
|
||||
var fs = require('fs');
|
||||
var stderr = require('test-console').stderr;
|
||||
var AssertionError = assert.AssertionError;
|
||||
|
||||
describe('app', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var koa = require('../..')
|
||||
var request = require('supertest');
|
||||
var koa = require('../..')
|
||||
|
||||
describe('ctx.cookies.set()', function(){
|
||||
it('should set an unsigned cookie', function(done){
|
||||
|
@ -78,4 +78,4 @@ describe('ctx.cookies.set()', function(){
|
|||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var koa = require('../..');
|
||||
var request = require('supertest');
|
||||
var koa = require('../..');
|
||||
|
||||
describe('ctx.onerror(err)', function(){
|
||||
it('should respond', function(done){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var assert = require('assert');
|
||||
var request = require('../context').request;
|
||||
var assert = require('assert');
|
||||
|
||||
describe('req.host', function(){
|
||||
it('should return host with port', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var assert = require('assert');
|
||||
var request = require('../context').request;
|
||||
var assert = require('assert');
|
||||
|
||||
describe('req.hostname', function(){
|
||||
it('should return hostname void of port', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var assert = require('assert');
|
||||
var request = require('../context').request;
|
||||
var assert = require('assert');
|
||||
|
||||
describe('req.inspect()', function(){
|
||||
describe('with no request.req present', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var assert = require('assert');
|
||||
var request = require('../context').request;
|
||||
var assert = require('assert');
|
||||
|
||||
describe('ctx.length', function(){
|
||||
it('should return length in content-length', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var assert = require('assert');
|
||||
var request = require('../context').request;
|
||||
var assert = require('assert');
|
||||
|
||||
describe('req.type', function(){
|
||||
it('should return type void of parameters', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var request = require('supertest');
|
||||
var context = require('../context');
|
||||
var request = require('supertest');
|
||||
var koa = require('../..');
|
||||
|
||||
describe('ctx.attachment([filename])', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var assert = require('assert');
|
||||
var response = require('../context').response;
|
||||
var assert = require('assert');
|
||||
|
||||
describe('res.inspect()', 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 should = require('should');
|
||||
var assert = require('assert');
|
||||
var fs = require('fs');
|
||||
|
||||
describe('res.length', function(){
|
||||
describe('when Content-Length is defined', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var Stream = require('stream');
|
||||
var response = require('../context').response;
|
||||
var Stream = require('stream');
|
||||
|
||||
describe('res.message', function(){
|
||||
it('should return the response status message', function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var Stream = require('stream');
|
||||
var response = require('../context').response;
|
||||
var Stream = require('stream');
|
||||
|
||||
describe('res.socket', function(){
|
||||
it('should return the request socket object', function(){
|
||||
|
|
Loading…
Reference in a new issue