Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 283 Bytes

README.md

File metadata and controls

6 lines (6 loc) · 283 Bytes

shouldIncludeFragment

Jasmine matcher designed to allow you to test whether a particular JSON object matches a fragment, only comparing the keys that the fragment has. Example

expect({foo: "bar", unrelated_field: 42}).toIncludeFragment({foo: "bar"}) //passes