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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    1

Package Sidebar

Install

npm i jasmine-should-include-fragment

Weekly Downloads

1

Version

0.0.0

License

BSD

Last publish

Collaborators

  • hderms