{"action":"created","comment":{"url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/comments/114698372","pull_request_review_id":36185551,"id":114698372,"diff_hunk":"@@ -0,0 +1,44 @@\n+import { ensureLogin, containsErrorMessage } from '../../utils/HelpUtil';\n+import callErrors from '../../../modules/Call/callErrors';\n+\n+export default (Auth, Alert, Client, RegionSettings, Call, testAccount, caseId = '') => {\n+  const testAccounts = testAccount && testAccount.constructor === Array ?\n+    testAccount :\n+    [testAccount];\n+  testAccounts.forEach((account) => {\n+    describe(`${caseId} Outbound call - Error handling for invalid dialing number', ${account.accountType ? `(${account.accountType})` : ''}`, function () {\n+      this.timeout(10000);\n+      before(async function () {\n+        const isLoginSuccess = await ensureLogin(Auth, account);\n+        if (!isLoginSuccess) {\n+          this.skip();\n+          console.error('Skip test case as failed to login with credential ', account);\n+        }\n+      });\n+      it('Should Alert Invalid Number - Do not enter anything', async () => {\n+        Call.onToNumberChange('');\n+        await Call.onCall();\n+        expect(containsErrorMessage(Alert.state.messages, callErrors.noToNumber))\n+          .to.not.equal(undefined);\n+        expect(containsErrorMessage(Alert.state.messages, callErrors.noAreaCode))","path":"src/integration-test/spec-modules/outbound/invalidDialingNumber.js","position":23,"original_position":23,"commit_id":"e66ca791273bbed5f58fa29a0ecc8c5ed7f1ffec","original_commit_id":"e66ca791273bbed5f58fa29a0ecc8c5ed7f1ffec","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: ['expect' is not defined. (no-undef)](https://www.codacy.com/app/RingCentral/ringcentral-js-integration-commons/pullRequest?prid=632776)","created_at":"2017-05-04T04:25:40Z","updated_at":"2017-05-04T04:25:40Z","html_url":"https://github.com/ringcentral/ringcentral-js-integration-commons/pull/260#discussion_r114698372","pull_request_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260","_links":{"self":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/comments/114698372"},"html":{"href":"https://github.com/ringcentral/ringcentral-js-integration-commons/pull/260#discussion_r114698372"},"pull_request":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260"}}},"pull_request":{"url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260","id":118697935,"html_url":"https://github.com/ringcentral/ringcentral-js-integration-commons/pull/260","diff_url":"https://github.com/ringcentral/ringcentral-js-integration-commons/pull/260.diff","patch_url":"https://github.com/ringcentral/ringcentral-js-integration-commons/pull/260.patch","issue_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/260","number":260,"state":"open","locked":false,"title":"add RCI-525","user":{"login":"marcusrc","id":19321796,"avatar_url":"https://avatars0.githubusercontent.com/u/19321796?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusrc","html_url":"https://github.com/marcusrc","followers_url":"https://api.github.com/users/marcusrc/followers","following_url":"https://api.github.com/users/marcusrc/following{/other_user}","gists_url":"https://api.github.com/users/marcusrc/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusrc/subscriptions","organizations_url":"https://api.github.com/users/marcusrc/orgs","repos_url":"https://api.github.com/users/marcusrc/repos","events_url":"https://api.github.com/users/marcusrc/events{/privacy}","received_events_url":"https://api.github.com/users/marcusrc/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-03T06:32:48Z","updated_at":"2017-05-04T04:25:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c919b8ff41ff5d99fbf8d4feaeb5e193887bebc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260/commits","review_comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260/comments","review_comment_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/260/comments","statuses_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/statuses/e66ca791273bbed5f58fa29a0ecc8c5ed7f1ffec","head":{"label":"ringcentral:testlink","ref":"testlink","sha":"e66ca791273bbed5f58fa29a0ecc8c5ed7f1ffec","user":{"login":"ringcentral","id":6549285,"avatar_url":"https://avatars0.githubusercontent.com/u/6549285?v=3","gravatar_id":"","url":"https://api.github.com/users/ringcentral","html_url":"https://github.com/ringcentral","followers_url":"https://api.github.com/users/ringcentral/followers","following_url":"https://api.github.com/users/ringcentral/following{/other_user}","gists_url":"https://api.github.com/users/ringcentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ringcentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringcentral/subscriptions","organizations_url":"https://api.github.com/users/ringcentral/orgs","repos_url":"https://api.github.com/users/ringcentral/repos","events_url":"https://api.github.com/users/ringcentral/events{/privacy}","received_events_url":"https://api.github.com/users/ringcentral/received_events","type":"Organization","site_admin":false},"repo":{"id":56838188,"name":"ringcentral-js-integration-commons","full_name":"ringcentral/ringcentral-js-integration-commons","owner":{"login":"ringcentral","id":6549285,"avatar_url":"https://avatars0.githubusercontent.com/u/6549285?v=3","gravatar_id":"","url":"https://api.github.com/users/ringcentral","html_url":"https://github.com/ringcentral","followers_url":"https://api.github.com/users/ringcentral/followers","following_url":"https://api.github.com/users/ringcentral/following{/other_user}","gists_url":"https://api.github.com/users/ringcentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ringcentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringcentral/subscriptions","organizations_url":"https://api.github.com/users/ringcentral/orgs","repos_url":"https://api.github.com/users/ringcentral/repos","events_url":"https://api.github.com/users/ringcentral/events{/privacy}","received_events_url":"https://api.github.com/users/ringcentral/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ringcentral/ringcentral-js-integration-commons","description":"RingCentral Integration Common Javascript Core Library","fork":false,"url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons","forks_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/forks","keys_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/teams","hooks_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/hooks","issue_events_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/events{/number}","events_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/events","assignees_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/assignees{/user}","branches_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/branches{/branch}","tags_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/tags","blobs_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/languages","stargazers_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/stargazers","contributors_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/contributors","subscribers_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/subscribers","subscription_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/subscription","commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/contents/{+path}","compare_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/merges","archive_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/downloads","issues_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues{/number}","pulls_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/labels{/name}","releases_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/releases{/id}","deployments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/deployments","created_at":"2016-04-22T08:08:51Z","updated_at":"2017-04-19T15:26:41Z","pushed_at":"2017-05-04T04:23:40Z","git_url":"git://github.com/ringcentral/ringcentral-js-integration-commons.git","ssh_url":"git@github.com:ringcentral/ringcentral-js-integration-commons.git","clone_url":"https://github.com/ringcentral/ringcentral-js-integration-commons.git","svn_url":"https://github.com/ringcentral/ringcentral-js-integration-commons","homepage":"","size":2900,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":9,"forks":10,"open_issues":9,"watchers":6,"default_branch":"master"}},"base":{"label":"ringcentral:master","ref":"master","sha":"2718a3af6c2be48fac66aa847b0e316de76612a0","user":{"login":"ringcentral","id":6549285,"avatar_url":"https://avatars0.githubusercontent.com/u/6549285?v=3","gravatar_id":"","url":"https://api.github.com/users/ringcentral","html_url":"https://github.com/ringcentral","followers_url":"https://api.github.com/users/ringcentral/followers","following_url":"https://api.github.com/users/ringcentral/following{/other_user}","gists_url":"https://api.github.com/users/ringcentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ringcentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringcentral/subscriptions","organizations_url":"https://api.github.com/users/ringcentral/orgs","repos_url":"https://api.github.com/users/ringcentral/repos","events_url":"https://api.github.com/users/ringcentral/events{/privacy}","received_events_url":"https://api.github.com/users/ringcentral/received_events","type":"Organization","site_admin":false},"repo":{"id":56838188,"name":"ringcentral-js-integration-commons","full_name":"ringcentral/ringcentral-js-integration-commons","owner":{"login":"ringcentral","id":6549285,"avatar_url":"https://avatars0.githubusercontent.com/u/6549285?v=3","gravatar_id":"","url":"https://api.github.com/users/ringcentral","html_url":"https://github.com/ringcentral","followers_url":"https://api.github.com/users/ringcentral/followers","following_url":"https://api.github.com/users/ringcentral/following{/other_user}","gists_url":"https://api.github.com/users/ringcentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ringcentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringcentral/subscriptions","organizations_url":"https://api.github.com/users/ringcentral/orgs","repos_url":"https://api.github.com/users/ringcentral/repos","events_url":"https://api.github.com/users/ringcentral/events{/privacy}","received_events_url":"https://api.github.com/users/ringcentral/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ringcentral/ringcentral-js-integration-commons","description":"RingCentral Integration Common Javascript Core Library","fork":false,"url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons","forks_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/forks","keys_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/teams","hooks_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/hooks","issue_events_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/events{/number}","events_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/events","assignees_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/assignees{/user}","branches_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/branches{/branch}","tags_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/tags","blobs_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/languages","stargazers_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/stargazers","contributors_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/contributors","subscribers_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/subscribers","subscription_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/subscription","commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/contents/{+path}","compare_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/merges","archive_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/downloads","issues_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues{/number}","pulls_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/labels{/name}","releases_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/releases{/id}","deployments_url":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/deployments","created_at":"2016-04-22T08:08:51Z","updated_at":"2017-04-19T15:26:41Z","pushed_at":"2017-05-04T04:23:40Z","git_url":"git://github.com/ringcentral/ringcentral-js-integration-commons.git","ssh_url":"git@github.com:ringcentral/ringcentral-js-integration-commons.git","clone_url":"https://github.com/ringcentral/ringcentral-js-integration-commons.git","svn_url":"https://github.com/ringcentral/ringcentral-js-integration-commons","homepage":"","size":2900,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":9,"forks":10,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260"},"html":{"href":"https://github.com/ringcentral/ringcentral-js-integration-commons/pull/260"},"issue":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/260"},"comments":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260/comments"},"review_comment":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/pulls/260/commits"},"statuses":{"href":"https://api.github.com/repos/ringcentral/ringcentral-js-integration-commons/statuses/e66ca791273bbed5f58fa29a0ecc8c5ed7f1ffec"}}}}
{"actor":{"display_login":"codacy-bot"}}