{"action":"opened","issue":{"url":"https://api.github.com/repos/mjackson/expect/issues/180","repository_url":"https://api.github.com/repos/mjackson/expect","labels_url":"https://api.github.com/repos/mjackson/expect/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/mjackson/expect/issues/180/comments","events_url":"https://api.github.com/repos/mjackson/expect/issues/180/events","html_url":"https://github.com/mjackson/expect/issues/180","id":194308382,"number":180,"title":".toExcludeKeys not working as expected","user":{"login":"5c077yP","id":1775958,"avatar_url":"https://avatars.githubusercontent.com/u/1775958?v=3","gravatar_id":"","url":"https://api.github.com/users/5c077yP","html_url":"https://github.com/5c077yP","followers_url":"https://api.github.com/users/5c077yP/followers","following_url":"https://api.github.com/users/5c077yP/following{/other_user}","gists_url":"https://api.github.com/users/5c077yP/gists{/gist_id}","starred_url":"https://api.github.com/users/5c077yP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5c077yP/subscriptions","organizations_url":"https://api.github.com/users/5c077yP/orgs","repos_url":"https://api.github.com/users/5c077yP/repos","events_url":"https://api.github.com/users/5c077yP/events{/privacy}","received_events_url":"https://api.github.com/users/5c077yP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T11:09:56Z","updated_at":"2016-12-08T11:09:56Z","closed_at":null,"body":"Hey,\r\n\r\nthanks for this great library.\r\n\r\nI just came across `.toExcludeKeys`. And for me it feels that something is wrong here. The docs say:\r\n\r\n> does not contain **any** of the provided keys\r\n\r\nWhich sounds to me, if there is at least one key in the provided `keys` which is contained in the given `object`, it should fail.\r\n\r\nBut then on the other side there is even a test like [this](https://github.com/mjackson/expect/blob/master/modules/__tests__/toExcludeKeys-test.js#L34)\r\n\r\n```javascript\r\nit('does not throw when even one key does not exist', () => {\r\n  expect(() => {\r\n    expect({ a: 1, c: 3 }).toExcludeKeys([ 'a', 'b', 'c' ])\r\n  }).toNotThrow()\r\n})\r\n```\r\n\r\nThat looks more like, there needs to be at least on key in `keys` which is not in `object` and then it's fine. \r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"5c077yP"}}