light-my-request
Advanced tools
Comparing version 3.7.1 to 3.7.2
@@ -60,2 +60,3 @@ import * as stream from 'stream' | ||
server?: http.Server | ||
cookies?: { [k: string]: string } | ||
} | ||
@@ -62,0 +63,0 @@ |
{ | ||
"name": "light-my-request", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"description": "Fake HTTP injection library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,2 +25,10 @@ import { inject, isInjection, Request, Response, DispatchFunc, InjectOptions, Chain } from '../index' | ||
inject(dispatch, { method: 'get', url: '/', cookies: { name1: 'value1', value2: 'value2' } }, (err, res) => { | ||
expectType<Error>(err) | ||
expectType<Response>(res) | ||
console.log(res.payload) | ||
expectType<Function>(res.json) | ||
console.log(res.cookies) | ||
}) | ||
inject(dispatch) | ||
@@ -27,0 +35,0 @@ .get('/') |
68222
1862