{"action":"created","comment":{"url":"https://api.github.com/repos/tjmehta/101/pulls/comments/28645504","id":28645504,"diff_hunk":"@@ -0,0 +1,44 @@\n+var Lab = require('lab');\n+var lab = exports.lab = Lab.script();\n+\n+var describe = lab.describe;\n+var it = lab.it;\n+var Code = require('code');\n+var expect = Code.expect;\n+\n+var keysIn = require('../keys-in');\n+\n+describe('keys-in', function() {\n+  it('should return all the keys of an object', function(done) {\n+    var object = {\n+      hello: true,\n+      world: true\n+    };\n+\n+    var keys = keysIn(object);\n+\n+    expect(keys).to.have.length(2);\n+    expect(keys).to.deep.equal(['hello', 'world']);\n+    done();\n+  });\n+\n+  it('should return also the prototype keys', function(done) {\n+    var Test = function() {};\n+    Test.prototype.hello = function() { return 'hello'; };\n+    Test.prototype.world = function() { return 'world'; };\n+\n+    var keys = keysIn(Test);\n+\n+    expect(keys).to.have.length(2);\n+    expect(keys).to.deep.equal(['hello', 'world']);\n+    done();\n+  });\n+\n+  it('should return an empty array', function(done) {\n+    var keys = keysIn();\n+\n+    expect(Array.isArray(keys)).to.be.true;\n+    expect(keys.length).not.to.be.ok;","path":"test/test-keys-in.js","position":41,"original_position":41,"commit_id":"4345913c8d2711ae6fa11d1a317b80c27efc7d12","original_commit_id":"4345913c8d2711ae6fa11d1a317b80c27efc7d12","user":{"login":"bkendall","id":160236,"avatar_url":"https://avatars.githubusercontent.com/u/160236?v=3","gravatar_id":"","url":"https://api.github.com/users/bkendall","html_url":"https://github.com/bkendall","followers_url":"https://api.github.com/users/bkendall/followers","following_url":"https://api.github.com/users/bkendall/following{/other_user}","gists_url":"https://api.github.com/users/bkendall/gists{/gist_id}","starred_url":"https://api.github.com/users/bkendall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkendall/subscriptions","organizations_url":"https://api.github.com/users/bkendall/orgs","repos_url":"https://api.github.com/users/bkendall/repos","events_url":"https://api.github.com/users/bkendall/events{/privacy}","received_events_url":"https://api.github.com/users/bkendall/received_events","type":"User","site_admin":false},"body":"`.ok` (or `.ok()`) doesn't exist in `code` - you'll have to use `.equals(0)` or `.empty()`","created_at":"2015-04-18T16:51:05Z","updated_at":"2015-04-18T16:51:05Z","html_url":"https://github.com/tjmehta/101/pull/93#discussion_r28645504","pull_request_url":"https://api.github.com/repos/tjmehta/101/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/tjmehta/101/pulls/comments/28645504"},"html":{"href":"https://github.com/tjmehta/101/pull/93#discussion_r28645504"},"pull_request":{"href":"https://api.github.com/repos/tjmehta/101/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/tjmehta/101/pulls/93","id":33550305,"html_url":"https://github.com/tjmehta/101/pull/93","diff_url":"https://github.com/tjmehta/101/pull/93.diff","patch_url":"https://github.com/tjmehta/101/pull/93.patch","issue_url":"https://api.github.com/repos/tjmehta/101/issues/93","number":93,"state":"open","locked":false,"title":"bindAll module","user":{"login":"albertorestifo","id":1037048,"avatar_url":"https://avatars.githubusercontent.com/u/1037048?v=3","gravatar_id":"","url":"https://api.github.com/users/albertorestifo","html_url":"https://github.com/albertorestifo","followers_url":"https://api.github.com/users/albertorestifo/followers","following_url":"https://api.github.com/users/albertorestifo/following{/other_user}","gists_url":"https://api.github.com/users/albertorestifo/gists{/gist_id}","starred_url":"https://api.github.com/users/albertorestifo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertorestifo/subscriptions","organizations_url":"https://api.github.com/users/albertorestifo/orgs","repos_url":"https://api.github.com/users/albertorestifo/repos","events_url":"https://api.github.com/users/albertorestifo/events{/privacy}","received_events_url":"https://api.github.com/users/albertorestifo/received_events","type":"User","site_admin":false},"body":"Add a bindAll module, with the same behaviour as the LoDash `_.bindAll` method","created_at":"2015-04-17T14:40:24Z","updated_at":"2015-04-18T16:51:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"737f2b574f825d533aa99e272ac62a510d3062a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tjmehta/101/pulls/93/commits","review_comments_url":"https://api.github.com/repos/tjmehta/101/pulls/93/comments","review_comment_url":"https://api.github.com/repos/tjmehta/101/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tjmehta/101/issues/93/comments","statuses_url":"https://api.github.com/repos/tjmehta/101/statuses/4345913c8d2711ae6fa11d1a317b80c27efc7d12","head":{"label":"albertorestifo:feature-bindall","ref":"feature-bindall","sha":"4345913c8d2711ae6fa11d1a317b80c27efc7d12","user":{"login":"albertorestifo","id":1037048,"avatar_url":"https://avatars.githubusercontent.com/u/1037048?v=3","gravatar_id":"","url":"https://api.github.com/users/albertorestifo","html_url":"https://github.com/albertorestifo","followers_url":"https://api.github.com/users/albertorestifo/followers","following_url":"https://api.github.com/users/albertorestifo/following{/other_user}","gists_url":"https://api.github.com/users/albertorestifo/gists{/gist_id}","starred_url":"https://api.github.com/users/albertorestifo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertorestifo/subscriptions","organizations_url":"https://api.github.com/users/albertorestifo/orgs","repos_url":"https://api.github.com/users/albertorestifo/repos","events_url":"https://api.github.com/users/albertorestifo/events{/privacy}","received_events_url":"https://api.github.com/users/albertorestifo/received_events","type":"User","site_admin":false},"repo":{"id":34110191,"name":"101","full_name":"albertorestifo/101","owner":{"login":"albertorestifo","id":1037048,"avatar_url":"https://avatars.githubusercontent.com/u/1037048?v=3","gravatar_id":"","url":"https://api.github.com/users/albertorestifo","html_url":"https://github.com/albertorestifo","followers_url":"https://api.github.com/users/albertorestifo/followers","following_url":"https://api.github.com/users/albertorestifo/following{/other_user}","gists_url":"https://api.github.com/users/albertorestifo/gists{/gist_id}","starred_url":"https://api.github.com/users/albertorestifo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertorestifo/subscriptions","organizations_url":"https://api.github.com/users/albertorestifo/orgs","repos_url":"https://api.github.com/users/albertorestifo/repos","events_url":"https://api.github.com/users/albertorestifo/events{/privacy}","received_events_url":"https://api.github.com/users/albertorestifo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertorestifo/101","description":"A modern JS utility library","fork":true,"url":"https://api.github.com/repos/albertorestifo/101","forks_url":"https://api.github.com/repos/albertorestifo/101/forks","keys_url":"https://api.github.com/repos/albertorestifo/101/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertorestifo/101/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertorestifo/101/teams","hooks_url":"https://api.github.com/repos/albertorestifo/101/hooks","issue_events_url":"https://api.github.com/repos/albertorestifo/101/issues/events{/number}","events_url":"https://api.github.com/repos/albertorestifo/101/events","assignees_url":"https://api.github.com/repos/albertorestifo/101/assignees{/user}","branches_url":"https://api.github.com/repos/albertorestifo/101/branches{/branch}","tags_url":"https://api.github.com/repos/albertorestifo/101/tags","blobs_url":"https://api.github.com/repos/albertorestifo/101/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertorestifo/101/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertorestifo/101/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertorestifo/101/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertorestifo/101/statuses/{sha}","languages_url":"https://api.github.com/repos/albertorestifo/101/languages","stargazers_url":"https://api.github.com/repos/albertorestifo/101/stargazers","contributors_url":"https://api.github.com/repos/albertorestifo/101/contributors","subscribers_url":"https://api.github.com/repos/albertorestifo/101/subscribers","subscription_url":"https://api.github.com/repos/albertorestifo/101/subscription","commits_url":"https://api.github.com/repos/albertorestifo/101/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertorestifo/101/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertorestifo/101/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertorestifo/101/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertorestifo/101/contents/{+path}","compare_url":"https://api.github.com/repos/albertorestifo/101/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertorestifo/101/merges","archive_url":"https://api.github.com/repos/albertorestifo/101/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertorestifo/101/downloads","issues_url":"https://api.github.com/repos/albertorestifo/101/issues{/number}","pulls_url":"https://api.github.com/repos/albertorestifo/101/pulls{/number}","milestones_url":"https://api.github.com/repos/albertorestifo/101/milestones{/number}","notifications_url":"https://api.github.com/repos/albertorestifo/101/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertorestifo/101/labels{/name}","releases_url":"https://api.github.com/repos/albertorestifo/101/releases{/id}","created_at":"2015-04-17T10:15:05Z","updated_at":"2015-04-17T10:15:05Z","pushed_at":"2015-04-18T12:10:13Z","git_url":"git://github.com/albertorestifo/101.git","ssh_url":"git@github.com:albertorestifo/101.git","clone_url":"https://github.com/albertorestifo/101.git","svn_url":"https://github.com/albertorestifo/101","homepage":"","size":1865,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tjmehta:master","ref":"master","sha":"2218679cf871a66d91bafca73fdd55dd109ada3a","user":{"login":"tjmehta","id":640279,"avatar_url":"https://avatars.githubusercontent.com/u/640279?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmehta","html_url":"https://github.com/tjmehta","followers_url":"https://api.github.com/users/tjmehta/followers","following_url":"https://api.github.com/users/tjmehta/following{/other_user}","gists_url":"https://api.github.com/users/tjmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmehta/subscriptions","organizations_url":"https://api.github.com/users/tjmehta/orgs","repos_url":"https://api.github.com/users/tjmehta/repos","events_url":"https://api.github.com/users/tjmehta/events{/privacy}","received_events_url":"https://api.github.com/users/tjmehta/received_events","type":"User","site_admin":false},"repo":{"id":18667134,"name":"101","full_name":"tjmehta/101","owner":{"login":"tjmehta","id":640279,"avatar_url":"https://avatars.githubusercontent.com/u/640279?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmehta","html_url":"https://github.com/tjmehta","followers_url":"https://api.github.com/users/tjmehta/followers","following_url":"https://api.github.com/users/tjmehta/following{/other_user}","gists_url":"https://api.github.com/users/tjmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmehta/subscriptions","organizations_url":"https://api.github.com/users/tjmehta/orgs","repos_url":"https://api.github.com/users/tjmehta/repos","events_url":"https://api.github.com/users/tjmehta/events{/privacy}","received_events_url":"https://api.github.com/users/tjmehta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tjmehta/101","description":"A modern JS utility library","fork":false,"url":"https://api.github.com/repos/tjmehta/101","forks_url":"https://api.github.com/repos/tjmehta/101/forks","keys_url":"https://api.github.com/repos/tjmehta/101/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjmehta/101/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjmehta/101/teams","hooks_url":"https://api.github.com/repos/tjmehta/101/hooks","issue_events_url":"https://api.github.com/repos/tjmehta/101/issues/events{/number}","events_url":"https://api.github.com/repos/tjmehta/101/events","assignees_url":"https://api.github.com/repos/tjmehta/101/assignees{/user}","branches_url":"https://api.github.com/repos/tjmehta/101/branches{/branch}","tags_url":"https://api.github.com/repos/tjmehta/101/tags","blobs_url":"https://api.github.com/repos/tjmehta/101/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjmehta/101/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjmehta/101/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjmehta/101/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjmehta/101/statuses/{sha}","languages_url":"https://api.github.com/repos/tjmehta/101/languages","stargazers_url":"https://api.github.com/repos/tjmehta/101/stargazers","contributors_url":"https://api.github.com/repos/tjmehta/101/contributors","subscribers_url":"https://api.github.com/repos/tjmehta/101/subscribers","subscription_url":"https://api.github.com/repos/tjmehta/101/subscription","commits_url":"https://api.github.com/repos/tjmehta/101/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjmehta/101/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjmehta/101/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjmehta/101/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjmehta/101/contents/{+path}","compare_url":"https://api.github.com/repos/tjmehta/101/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjmehta/101/merges","archive_url":"https://api.github.com/repos/tjmehta/101/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjmehta/101/downloads","issues_url":"https://api.github.com/repos/tjmehta/101/issues{/number}","pulls_url":"https://api.github.com/repos/tjmehta/101/pulls{/number}","milestones_url":"https://api.github.com/repos/tjmehta/101/milestones{/number}","notifications_url":"https://api.github.com/repos/tjmehta/101/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjmehta/101/labels{/name}","releases_url":"https://api.github.com/repos/tjmehta/101/releases{/id}","created_at":"2014-04-11T08:14:09Z","updated_at":"2015-04-17T15:55:26Z","pushed_at":"2015-04-18T12:10:14Z","git_url":"git://github.com/tjmehta/101.git","ssh_url":"git@github.com:tjmehta/101.git","clone_url":"https://github.com/tjmehta/101.git","svn_url":"https://github.com/tjmehta/101","homepage":"","size":1865,"stargazers_count":1357,"watchers_count":1357,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":59,"mirror_url":null,"open_issues_count":16,"forks":59,"open_issues":16,"watchers":1357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tjmehta/101/pulls/93"},"html":{"href":"https://github.com/tjmehta/101/pull/93"},"issue":{"href":"https://api.github.com/repos/tjmehta/101/issues/93"},"comments":{"href":"https://api.github.com/repos/tjmehta/101/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/tjmehta/101/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/tjmehta/101/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tjmehta/101/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/tjmehta/101/statuses/4345913c8d2711ae6fa11d1a317b80c27efc7d12"}}}}