Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

jasmine-should-include-fragment

0.0.0 • Public • Published

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

Keywords

none

Install

npm i jasmine-should-include-fragment

DownloadsWeekly Downloads

1

Version

0.0.0

License

none

Last publish

Collaborators

  • avatar