{"action":"created","comment":{"url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/comments/48772701","id":48772701,"diff_hunk":"@@ -45,9 +45,49 @@ describe('EqualKeysAssert', () => {\n     }\n   });\n \n+  it('should throw an error if the object is empty', () => {\n+    try {\n+      new Assert().EqualKeys(['foo']).validate({});\n+\n+      should.fail();\n+    } catch (e) {\n+      e.show().violation.difference.should.eql(['foo']);\n+    }\n+  });\n+\n+  it('should allow setting no keys', () => {","path":"test/asserts/equal-keys-assert_test.js","position":23,"original_position":23,"commit_id":"697cc5849028c11c346a04973fe623ebe83f99e5","original_commit_id":"697cc5849028c11c346a04973fe623ebe83f99e5","user":{"login":"nunofgs","id":92085,"avatar_url":"https://avatars.githubusercontent.com/u/92085?v=3","gravatar_id":"","url":"https://api.github.com/users/nunofgs","html_url":"https://github.com/nunofgs","followers_url":"https://api.github.com/users/nunofgs/followers","following_url":"https://api.github.com/users/nunofgs/following{/other_user}","gists_url":"https://api.github.com/users/nunofgs/gists{/gist_id}","starred_url":"https://api.github.com/users/nunofgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nunofgs/subscriptions","organizations_url":"https://api.github.com/users/nunofgs/orgs","repos_url":"https://api.github.com/users/nunofgs/repos","events_url":"https://api.github.com/users/nunofgs/events{/privacy}","received_events_url":"https://api.github.com/users/nunofgs/received_events","type":"User","site_admin":false},"body":"What are we setting here? WDYT of rewording to something along the lines of:\r\n\r\n    'should allow `keys` to be undefined'","created_at":"2016-01-04T19:52:18Z","updated_at":"2016-01-04T19:52:18Z","html_url":"https://github.com/seegno/validator.js-asserts/pull/50#discussion_r48772701","pull_request_url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/comments/48772701"},"html":{"href":"https://github.com/seegno/validator.js-asserts/pull/50#discussion_r48772701"},"pull_request":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50","id":54931690,"html_url":"https://github.com/seegno/validator.js-asserts/pull/50","diff_url":"https://github.com/seegno/validator.js-asserts/pull/50.diff","patch_url":"https://github.com/seegno/validator.js-asserts/pull/50.patch","issue_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues/50","number":50,"state":"open","locked":false,"title":"Handle empty objects in `EqualKeys`","user":{"login":"ruimarinho","id":288709,"avatar_url":"https://avatars.githubusercontent.com/u/288709?v=3","gravatar_id":"","url":"https://api.github.com/users/ruimarinho","html_url":"https://github.com/ruimarinho","followers_url":"https://api.github.com/users/ruimarinho/followers","following_url":"https://api.github.com/users/ruimarinho/following{/other_user}","gists_url":"https://api.github.com/users/ruimarinho/gists{/gist_id}","starred_url":"https://api.github.com/users/ruimarinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruimarinho/subscriptions","organizations_url":"https://api.github.com/users/ruimarinho/orgs","repos_url":"https://api.github.com/users/ruimarinho/repos","events_url":"https://api.github.com/users/ruimarinho/events{/privacy}","received_events_url":"https://api.github.com/users/ruimarinho/received_events","type":"User","site_admin":false},"body":"Closes #34.","created_at":"2016-01-03T20:33:51Z","updated_at":"2016-01-04T19:52:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bef6753514db6a3c453a6c71059bd30a11d64f37","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50/commits","review_comments_url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50/comments","review_comment_url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues/50/comments","statuses_url":"https://api.github.com/repos/seegno/validator.js-asserts/statuses/697cc5849028c11c346a04973fe623ebe83f99e5","head":{"label":"seegno:enhancement/handle-empty-objects","ref":"enhancement/handle-empty-objects","sha":"697cc5849028c11c346a04973fe623ebe83f99e5","user":{"login":"seegno","id":1326469,"avatar_url":"https://avatars.githubusercontent.com/u/1326469?v=3","gravatar_id":"","url":"https://api.github.com/users/seegno","html_url":"https://github.com/seegno","followers_url":"https://api.github.com/users/seegno/followers","following_url":"https://api.github.com/users/seegno/following{/other_user}","gists_url":"https://api.github.com/users/seegno/gists{/gist_id}","starred_url":"https://api.github.com/users/seegno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seegno/subscriptions","organizations_url":"https://api.github.com/users/seegno/orgs","repos_url":"https://api.github.com/users/seegno/repos","events_url":"https://api.github.com/users/seegno/events{/privacy}","received_events_url":"https://api.github.com/users/seegno/received_events","type":"Organization","site_admin":false},"repo":{"id":26413671,"name":"validator.js-asserts","full_name":"seegno/validator.js-asserts","owner":{"login":"seegno","id":1326469,"avatar_url":"https://avatars.githubusercontent.com/u/1326469?v=3","gravatar_id":"","url":"https://api.github.com/users/seegno","html_url":"https://github.com/seegno","followers_url":"https://api.github.com/users/seegno/followers","following_url":"https://api.github.com/users/seegno/following{/other_user}","gists_url":"https://api.github.com/users/seegno/gists{/gist_id}","starred_url":"https://api.github.com/users/seegno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seegno/subscriptions","organizations_url":"https://api.github.com/users/seegno/orgs","repos_url":"https://api.github.com/users/seegno/repos","events_url":"https://api.github.com/users/seegno/events{/privacy}","received_events_url":"https://api.github.com/users/seegno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seegno/validator.js-asserts","description":"A set of extra asserts for validator.js.","fork":false,"url":"https://api.github.com/repos/seegno/validator.js-asserts","forks_url":"https://api.github.com/repos/seegno/validator.js-asserts/forks","keys_url":"https://api.github.com/repos/seegno/validator.js-asserts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seegno/validator.js-asserts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seegno/validator.js-asserts/teams","hooks_url":"https://api.github.com/repos/seegno/validator.js-asserts/hooks","issue_events_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues/events{/number}","events_url":"https://api.github.com/repos/seegno/validator.js-asserts/events","assignees_url":"https://api.github.com/repos/seegno/validator.js-asserts/assignees{/user}","branches_url":"https://api.github.com/repos/seegno/validator.js-asserts/branches{/branch}","tags_url":"https://api.github.com/repos/seegno/validator.js-asserts/tags","blobs_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/refs{/sha}","trees_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seegno/validator.js-asserts/statuses/{sha}","languages_url":"https://api.github.com/repos/seegno/validator.js-asserts/languages","stargazers_url":"https://api.github.com/repos/seegno/validator.js-asserts/stargazers","contributors_url":"https://api.github.com/repos/seegno/validator.js-asserts/contributors","subscribers_url":"https://api.github.com/repos/seegno/validator.js-asserts/subscribers","subscription_url":"https://api.github.com/repos/seegno/validator.js-asserts/subscription","commits_url":"https://api.github.com/repos/seegno/validator.js-asserts/commits{/sha}","git_commits_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/commits{/sha}","comments_url":"https://api.github.com/repos/seegno/validator.js-asserts/comments{/number}","issue_comment_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues/comments{/number}","contents_url":"https://api.github.com/repos/seegno/validator.js-asserts/contents/{+path}","compare_url":"https://api.github.com/repos/seegno/validator.js-asserts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seegno/validator.js-asserts/merges","archive_url":"https://api.github.com/repos/seegno/validator.js-asserts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seegno/validator.js-asserts/downloads","issues_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues{/number}","pulls_url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls{/number}","milestones_url":"https://api.github.com/repos/seegno/validator.js-asserts/milestones{/number}","notifications_url":"https://api.github.com/repos/seegno/validator.js-asserts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seegno/validator.js-asserts/labels{/name}","releases_url":"https://api.github.com/repos/seegno/validator.js-asserts/releases{/id}","created_at":"2014-11-09T23:52:37Z","updated_at":"2015-02-08T20:03:34Z","pushed_at":"2016-01-04T19:37:29Z","git_url":"git://github.com/seegno/validator.js-asserts.git","ssh_url":"git@github.com:seegno/validator.js-asserts.git","clone_url":"https://github.com/seegno/validator.js-asserts.git","svn_url":"https://github.com/seegno/validator.js-asserts","homepage":"http://seegno.github.io/validator.js-asserts/","size":135,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"seegno:master","ref":"master","sha":"15d8e9436039fcc9e114a52ddcc3cc724413e3f1","user":{"login":"seegno","id":1326469,"avatar_url":"https://avatars.githubusercontent.com/u/1326469?v=3","gravatar_id":"","url":"https://api.github.com/users/seegno","html_url":"https://github.com/seegno","followers_url":"https://api.github.com/users/seegno/followers","following_url":"https://api.github.com/users/seegno/following{/other_user}","gists_url":"https://api.github.com/users/seegno/gists{/gist_id}","starred_url":"https://api.github.com/users/seegno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seegno/subscriptions","organizations_url":"https://api.github.com/users/seegno/orgs","repos_url":"https://api.github.com/users/seegno/repos","events_url":"https://api.github.com/users/seegno/events{/privacy}","received_events_url":"https://api.github.com/users/seegno/received_events","type":"Organization","site_admin":false},"repo":{"id":26413671,"name":"validator.js-asserts","full_name":"seegno/validator.js-asserts","owner":{"login":"seegno","id":1326469,"avatar_url":"https://avatars.githubusercontent.com/u/1326469?v=3","gravatar_id":"","url":"https://api.github.com/users/seegno","html_url":"https://github.com/seegno","followers_url":"https://api.github.com/users/seegno/followers","following_url":"https://api.github.com/users/seegno/following{/other_user}","gists_url":"https://api.github.com/users/seegno/gists{/gist_id}","starred_url":"https://api.github.com/users/seegno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seegno/subscriptions","organizations_url":"https://api.github.com/users/seegno/orgs","repos_url":"https://api.github.com/users/seegno/repos","events_url":"https://api.github.com/users/seegno/events{/privacy}","received_events_url":"https://api.github.com/users/seegno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seegno/validator.js-asserts","description":"A set of extra asserts for validator.js.","fork":false,"url":"https://api.github.com/repos/seegno/validator.js-asserts","forks_url":"https://api.github.com/repos/seegno/validator.js-asserts/forks","keys_url":"https://api.github.com/repos/seegno/validator.js-asserts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seegno/validator.js-asserts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seegno/validator.js-asserts/teams","hooks_url":"https://api.github.com/repos/seegno/validator.js-asserts/hooks","issue_events_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues/events{/number}","events_url":"https://api.github.com/repos/seegno/validator.js-asserts/events","assignees_url":"https://api.github.com/repos/seegno/validator.js-asserts/assignees{/user}","branches_url":"https://api.github.com/repos/seegno/validator.js-asserts/branches{/branch}","tags_url":"https://api.github.com/repos/seegno/validator.js-asserts/tags","blobs_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/refs{/sha}","trees_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seegno/validator.js-asserts/statuses/{sha}","languages_url":"https://api.github.com/repos/seegno/validator.js-asserts/languages","stargazers_url":"https://api.github.com/repos/seegno/validator.js-asserts/stargazers","contributors_url":"https://api.github.com/repos/seegno/validator.js-asserts/contributors","subscribers_url":"https://api.github.com/repos/seegno/validator.js-asserts/subscribers","subscription_url":"https://api.github.com/repos/seegno/validator.js-asserts/subscription","commits_url":"https://api.github.com/repos/seegno/validator.js-asserts/commits{/sha}","git_commits_url":"https://api.github.com/repos/seegno/validator.js-asserts/git/commits{/sha}","comments_url":"https://api.github.com/repos/seegno/validator.js-asserts/comments{/number}","issue_comment_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues/comments{/number}","contents_url":"https://api.github.com/repos/seegno/validator.js-asserts/contents/{+path}","compare_url":"https://api.github.com/repos/seegno/validator.js-asserts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seegno/validator.js-asserts/merges","archive_url":"https://api.github.com/repos/seegno/validator.js-asserts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seegno/validator.js-asserts/downloads","issues_url":"https://api.github.com/repos/seegno/validator.js-asserts/issues{/number}","pulls_url":"https://api.github.com/repos/seegno/validator.js-asserts/pulls{/number}","milestones_url":"https://api.github.com/repos/seegno/validator.js-asserts/milestones{/number}","notifications_url":"https://api.github.com/repos/seegno/validator.js-asserts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seegno/validator.js-asserts/labels{/name}","releases_url":"https://api.github.com/repos/seegno/validator.js-asserts/releases{/id}","created_at":"2014-11-09T23:52:37Z","updated_at":"2015-02-08T20:03:34Z","pushed_at":"2016-01-04T19:37:29Z","git_url":"git://github.com/seegno/validator.js-asserts.git","ssh_url":"git@github.com:seegno/validator.js-asserts.git","clone_url":"https://github.com/seegno/validator.js-asserts.git","svn_url":"https://github.com/seegno/validator.js-asserts","homepage":"http://seegno.github.io/validator.js-asserts/","size":135,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50"},"html":{"href":"https://github.com/seegno/validator.js-asserts/pull/50"},"issue":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/issues/50"},"comments":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/seegno/validator.js-asserts/statuses/697cc5849028c11c346a04973fe623ebe83f99e5"}}}}