jest-expect-json
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "jest-expect-json", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Jest testing with JSON", | ||
@@ -5,0 +5,0 @@ "main": "lib/expect-json.js", |
@@ -27,7 +27,10 @@ # Jest Expect JSON | ||
method: 'POST', | ||
body: '{"some": "DATA"}', | ||
body: '{"some": "DATA", "more": "DATA!"}', | ||
}) | ||
expect(fetch).toBeCalledWith('url', { | ||
method: 'POST', | ||
body: expect.jsonMatching({ some: 'DATA' }), | ||
body: expect.jsonMatching({ | ||
some: 'DATA', | ||
more: expect.stringContaining('!'), | ||
}), | ||
}); | ||
@@ -43,3 +46,3 @@ ``` | ||
method: 'POST', | ||
body: '{"some": "DATA", "MORE": "DATA!"}', | ||
body: '{"some": "DATA", "more": "unchecked data"}', | ||
}) | ||
@@ -46,0 +49,0 @@ expect(fetch).toBeCalledWith('url', { |
5306
66