0.0.0 • Published 11 years ago
jasmine-should-include-fragment v0.0.0
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
0.0.0
11 years ago