Skip to content

Additional matcher for testing whether an object matches a fragment of attributes

Notifications You must be signed in to change notification settings

rVibe/jasmine-include-fragment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Additional matcher for testing whether an object matches a fragment of attributes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published