Socket
Socket
Sign inDemoInstall

jest-expect-json

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"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', {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc