1.0.2 • Published 7 years ago

testchunks v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

testchunks

testchunks with app (suport express and koa)

Install

$ npm i -D testchunks

Usages

import test from 'ava'

const app = require('../app')

const http = require('http')
const request = require('request')
const testChunks = require('testchunks')

test.cb('GET /', t => {
  testChunks(app, '/', function(chunks, error, response, body){
    console.log(chunks)
    t.end()
  })
})

Support Express and Koa

if Express

  testChunks(app, '/', function(chunks, error, response, body){
    console.log(chunks)
    t.end()
  })

if Koa

  testChunks(app.callback(), '/', function(chunks, error, response, body){
    console.log(chunks)
    t.end()
  })
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago