fix #494: avoid squashing data onto fetch options #198
Annotations
3 errors
__tests__/index.spec.ts > mande > can use get with options only:
__tests__/index.spec.ts#L141
AssertionError: expected "bound bound fetch" to be called with arguments: [ '/api/?foo=a&bar=b', Anything ]
Received:
1st bound bound fetch call:
Array [
- "/api/?foo=a&bar=b",
- Anything,
+ "/api/",
+ Object {
+ "headers": Object {
+ "Accept": "application/json",
+ "Content-Type": "application/json",
+ },
+ "method": "GET",
+ "query": Object {},
+ "responseAs": "json",
+ "stringify": [Function stringify],
+ },
]
Number of calls: 1
❯ __tests__/index.spec.ts:141:17
|
__tests__/index.spec.ts > mande > can return a raw response when delete called without url parameter:
__tests__/index.spec.ts#L341
AssertionError: expected null not to be null
❯ __tests__/index.spec.ts:341:23
❯ __tests__/index.spec.ts:340:5
|
build
Process completed with exit code 1.
|