Skip to content

Instantly share code, notes, and snippets.

@NickTomlin
Created June 21, 2014 16:14
Show Gist options
  • Save NickTomlin/40b23e5f2f991909bbad to your computer and use it in GitHub Desktop.
Save NickTomlin/40b23e5f2f991909bbad to your computer and use it in GitHub Desktop.
describe("jasmine.objectContaining", function() {
var filters = {
available: [
{name: "foo"},
{name: "majors"}
]
};
it("matches objects with the expect key/value pairs", function() {
expect(filters.available).not.toEqual(jasmine.objectContaining({
name: "majors"
}));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment