light-my-request
Advanced tools
Comparing version 3.7.2 to 3.7.3
@@ -37,3 +37,3 @@ import * as stream from 'stream' | ||
port?: string | number | ||
query?: string | ||
query?: string | { [k: string]: string } | ||
} | ||
@@ -45,6 +45,6 @@ path?: string | { | ||
port?: string | number | ||
query?: string | ||
query?: string | { [k: string]: string } | ||
} | ||
headers?: http.IncomingHttpHeaders | http.OutgoingHttpHeaders | ||
query?: string | ||
query?: string | { [k: string]: string } | ||
simulate?: { | ||
@@ -51,0 +51,0 @@ end: boolean, |
{ | ||
"name": "light-my-request", | ||
"version": "3.7.2", | ||
"version": "3.7.3", | ||
"description": "Fake HTTP injection library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -33,2 +33,10 @@ import { inject, isInjection, Request, Response, DispatchFunc, InjectOptions, Chain } from '../index' | ||
inject(dispatch, { method: 'get', url: '/', query: { 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) | ||
@@ -35,0 +43,0 @@ .get('/') |
68552
1869