{"action":"created","comment":{"url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/comments/27057544","id":27057544,"diff_hunk":"@@ -0,0 +1,27 @@\n+'use strict';\n+\n+function ensureKeys(keys, obj) {\n+\tfor (var i = 0; i < keys.length; i++) {\n+\t\tif (!(keys[i] in obj) || keys[i] === undefined || keys[i] === null) {\n+\t\t\tconsole.warn('Required key: ' + keys[i] + ' is not found');\n+\t\t\treturn false;\n+\t\t}\n+\t}\n+\treturn true;\n+}","path":"test/common/common.js","position":11,"original_position":11,"commit_id":"a451f984d0168558eed5a523280dc221a954868f","original_commit_id":"a451f984d0168558eed5a523280dc221a954868f","user":{"login":"ZhenyuRipple","id":11278165,"avatar_url":"https://avatars.githubusercontent.com/u/11278165?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhenyuRipple","html_url":"https://github.com/ZhenyuRipple","followers_url":"https://api.github.com/users/ZhenyuRipple/followers","following_url":"https://api.github.com/users/ZhenyuRipple/following{/other_user}","gists_url":"https://api.github.com/users/ZhenyuRipple/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhenyuRipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhenyuRipple/subscriptions","organizations_url":"https://api.github.com/users/ZhenyuRipple/orgs","repos_url":"https://api.github.com/users/ZhenyuRipple/repos","events_url":"https://api.github.com/users/ZhenyuRipple/events{/privacy}","received_events_url":"https://api.github.com/users/ZhenyuRipple/received_events","type":"User","site_admin":false},"body":"Will fix in the next iteration.","created_at":"2015-03-24T18:19:29Z","updated_at":"2015-03-24T18:19:29Z","html_url":"https://github.com/ripple/ripple-rest-client/pull/5#discussion_r27057544","pull_request_url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/comments/27057544"},"html":{"href":"https://github.com/ripple/ripple-rest-client/pull/5#discussion_r27057544"},"pull_request":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5","id":31785826,"html_url":"https://github.com/ripple/ripple-rest-client/pull/5","diff_url":"https://github.com/ripple/ripple-rest-client/pull/5.diff","patch_url":"https://github.com/ripple/ripple-rest-client/pull/5.patch","issue_url":"https://api.github.com/repos/ripple/ripple-rest-client/issues/5","number":5,"state":"open","locked":false,"title":"[FIX] Fixing all the failing test cases and adding missing test cases","user":{"login":"ZhenyuRipple","id":11278165,"avatar_url":"https://avatars.githubusercontent.com/u/11278165?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhenyuRipple","html_url":"https://github.com/ZhenyuRipple","followers_url":"https://api.github.com/users/ZhenyuRipple/followers","following_url":"https://api.github.com/users/ZhenyuRipple/following{/other_user}","gists_url":"https://api.github.com/users/ZhenyuRipple/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhenyuRipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhenyuRipple/subscriptions","organizations_url":"https://api.github.com/users/ZhenyuRipple/orgs","repos_url":"https://api.github.com/users/ZhenyuRipple/repos","events_url":"https://api.github.com/users/ZhenyuRipple/events{/privacy}","received_events_url":"https://api.github.com/users/ZhenyuRipple/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-23T23:53:39Z","updated_at":"2015-03-24T18:19:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40ede0732445cd4c74206041b6c966619f3bf90f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ripple/ripple-rest-client/issues/5/comments","statuses_url":"https://api.github.com/repos/ripple/ripple-rest-client/statuses/a451f984d0168558eed5a523280dc221a954868f","head":{"label":"ZhenyuRipple:master","ref":"master","sha":"a451f984d0168558eed5a523280dc221a954868f","user":{"login":"ZhenyuRipple","id":11278165,"avatar_url":"https://avatars.githubusercontent.com/u/11278165?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhenyuRipple","html_url":"https://github.com/ZhenyuRipple","followers_url":"https://api.github.com/users/ZhenyuRipple/followers","following_url":"https://api.github.com/users/ZhenyuRipple/following{/other_user}","gists_url":"https://api.github.com/users/ZhenyuRipple/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhenyuRipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhenyuRipple/subscriptions","organizations_url":"https://api.github.com/users/ZhenyuRipple/orgs","repos_url":"https://api.github.com/users/ZhenyuRipple/repos","events_url":"https://api.github.com/users/ZhenyuRipple/events{/privacy}","received_events_url":"https://api.github.com/users/ZhenyuRipple/received_events","type":"User","site_admin":false},"repo":{"id":32045188,"name":"ripple-rest-client","full_name":"ZhenyuRipple/ripple-rest-client","owner":{"login":"ZhenyuRipple","id":11278165,"avatar_url":"https://avatars.githubusercontent.com/u/11278165?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhenyuRipple","html_url":"https://github.com/ZhenyuRipple","followers_url":"https://api.github.com/users/ZhenyuRipple/followers","following_url":"https://api.github.com/users/ZhenyuRipple/following{/other_user}","gists_url":"https://api.github.com/users/ZhenyuRipple/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhenyuRipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhenyuRipple/subscriptions","organizations_url":"https://api.github.com/users/ZhenyuRipple/orgs","repos_url":"https://api.github.com/users/ZhenyuRipple/repos","events_url":"https://api.github.com/users/ZhenyuRipple/events{/privacy}","received_events_url":"https://api.github.com/users/ZhenyuRipple/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhenyuRipple/ripple-rest-client","description":"","fork":true,"url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client","forks_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/forks","keys_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/teams","hooks_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/hooks","issue_events_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/issues/events{/number}","events_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/events","assignees_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/assignees{/user}","branches_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/branches{/branch}","tags_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/tags","blobs_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/languages","stargazers_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/stargazers","contributors_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/contributors","subscribers_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/subscribers","subscription_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/subscription","commits_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/contents/{+path}","compare_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/merges","archive_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/downloads","issues_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/issues{/number}","pulls_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/labels{/name}","releases_url":"https://api.github.com/repos/ZhenyuRipple/ripple-rest-client/releases{/id}","created_at":"2015-03-11T22:44:36Z","updated_at":"2015-03-24T00:10:12Z","pushed_at":"2015-03-24T00:10:12Z","git_url":"git://github.com/ZhenyuRipple/ripple-rest-client.git","ssh_url":"git@github.com:ZhenyuRipple/ripple-rest-client.git","clone_url":"https://github.com/ZhenyuRipple/ripple-rest-client.git","svn_url":"https://github.com/ZhenyuRipple/ripple-rest-client","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ripple:develop","ref":"develop","sha":"b06f76d123acdf0fcdcd933afab1c2b3090e8626","user":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"repo":{"id":31676264,"name":"ripple-rest-client","full_name":"ripple/ripple-rest-client","owner":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ripple/ripple-rest-client","description":"","fork":false,"url":"https://api.github.com/repos/ripple/ripple-rest-client","forks_url":"https://api.github.com/repos/ripple/ripple-rest-client/forks","keys_url":"https://api.github.com/repos/ripple/ripple-rest-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripple/ripple-rest-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripple/ripple-rest-client/teams","hooks_url":"https://api.github.com/repos/ripple/ripple-rest-client/hooks","issue_events_url":"https://api.github.com/repos/ripple/ripple-rest-client/issues/events{/number}","events_url":"https://api.github.com/repos/ripple/ripple-rest-client/events","assignees_url":"https://api.github.com/repos/ripple/ripple-rest-client/assignees{/user}","branches_url":"https://api.github.com/repos/ripple/ripple-rest-client/branches{/branch}","tags_url":"https://api.github.com/repos/ripple/ripple-rest-client/tags","blobs_url":"https://api.github.com/repos/ripple/ripple-rest-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripple/ripple-rest-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripple/ripple-rest-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripple/ripple-rest-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripple/ripple-rest-client/statuses/{sha}","languages_url":"https://api.github.com/repos/ripple/ripple-rest-client/languages","stargazers_url":"https://api.github.com/repos/ripple/ripple-rest-client/stargazers","contributors_url":"https://api.github.com/repos/ripple/ripple-rest-client/contributors","subscribers_url":"https://api.github.com/repos/ripple/ripple-rest-client/subscribers","subscription_url":"https://api.github.com/repos/ripple/ripple-rest-client/subscription","commits_url":"https://api.github.com/repos/ripple/ripple-rest-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripple/ripple-rest-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripple/ripple-rest-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripple/ripple-rest-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripple/ripple-rest-client/contents/{+path}","compare_url":"https://api.github.com/repos/ripple/ripple-rest-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripple/ripple-rest-client/merges","archive_url":"https://api.github.com/repos/ripple/ripple-rest-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripple/ripple-rest-client/downloads","issues_url":"https://api.github.com/repos/ripple/ripple-rest-client/issues{/number}","pulls_url":"https://api.github.com/repos/ripple/ripple-rest-client/pulls{/number}","milestones_url":"https://api.github.com/repos/ripple/ripple-rest-client/milestones{/number}","notifications_url":"https://api.github.com/repos/ripple/ripple-rest-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripple/ripple-rest-client/labels{/name}","releases_url":"https://api.github.com/repos/ripple/ripple-rest-client/releases{/id}","created_at":"2015-03-04T19:43:25Z","updated_at":"2015-03-11T22:59:44Z","pushed_at":"2015-03-24T00:10:12Z","git_url":"git://github.com/ripple/ripple-rest-client.git","ssh_url":"git@github.com:ripple/ripple-rest-client.git","clone_url":"https://github.com/ripple/ripple-rest-client.git","svn_url":"https://github.com/ripple/ripple-rest-client","homepage":null,"size":255,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5"},"html":{"href":"https://github.com/ripple/ripple-rest-client/pull/5"},"issue":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/issues/5"},"comments":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ripple/ripple-rest-client/statuses/a451f984d0168558eed5a523280dc221a954868f"}}}}