{"action":"opened","issue":{"url":"https://api.github.com/repos/JamieMason/Jasmine-Matchers/issues/37","labels_url":"https://api.github.com/repos/JamieMason/Jasmine-Matchers/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/JamieMason/Jasmine-Matchers/issues/37/comments","events_url":"https://api.github.com/repos/JamieMason/Jasmine-Matchers/issues/37/events","html_url":"https://github.com/JamieMason/Jasmine-Matchers/issues/37","id":91741736,"number":37,"title":"expect(object).toHaveUndefined('memberName');","user":{"login":"JamieMason","id":320492,"avatar_url":"https://avatars.githubusercontent.com/u/320492?v=3","gravatar_id":"","url":"https://api.github.com/users/JamieMason","html_url":"https://github.com/JamieMason","followers_url":"https://api.github.com/users/JamieMason/followers","following_url":"https://api.github.com/users/JamieMason/following{/other_user}","gists_url":"https://api.github.com/users/JamieMason/gists{/gist_id}","starred_url":"https://api.github.com/users/JamieMason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamieMason/subscriptions","organizations_url":"https://api.github.com/users/JamieMason/orgs","repos_url":"https://api.github.com/users/JamieMason/repos","events_url":"https://api.github.com/users/JamieMason/events{/privacy}","received_events_url":"https://api.github.com/users/JamieMason/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JamieMason/Jasmine-Matchers/labels/Enhancement","name":"Enhancement","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-29T08:55:11Z","updated_at":"2015-06-29T08:55:11Z","closed_at":null,"body":"Use case is in ui-router state params for example, where you might want to assert that a state of a given name exists as part of the state's configuration, but that no default value has been assigned to it.\r\n\r\nCurrent spec\r\n\r\n```javascript\r\nit('should not set a default value for the dateFrom param', function() {\r\n    expect($state.params).toHaveMember('dateFrom');\r\n    expect($state.params.dateFrom).toBeUndefined();\r\n});\r\n```\r\n\r\nCurrent output\r\n\r\n```\r\nExpected member \"dateFrom\" of Object({  }) to be member.\r\nExpected undefined not to be undefined\r\n```\r\n\r\nPreferred spec\r\n\r\n```javascript\r\nit('should not set a default value for the dateFrom param', function() {\r\n    expect($state.params).toHaveUndefined('dateFrom');\r\n});\r\n```\r\n\r\nPreferred output\r\n\r\n```\r\nExpected Object({  }) to have undefined member \"dateFrom\".\r\n```\r\n"}}