payload: {"action":"created","comment":{"url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments/261836822","pull_request_review_id":209878219,"id":261836822,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2MTgzNjgyMg==","diff_hunk":"@@ -0,0 +1,325 @@\n+const Checkit = require('../../shared/Checkit');\n+const assert = require('assert');\n+const { expect } = require('chai');\n+const spies = require('chai-spies');\n+const chai = require('chai');\n+const moment = require('moment');\n+\n+chai.use(spies);\n+\n+describe('Checkit', () => {\n+  describe('Validator', () => {\n+    it('responds to a custom ssn function', () => {\n+      expect(Checkit.Validator.prototype.ssn).to.be.a('function');\n+    });\n+\n+    it('responds to a custom oneOf function', () => {\n+      expect(Checkit.Validator.prototype.oneOf).to.be.a('function');\n+    });\n+\n+    it('responds to a custom parsableDate function', () => {\n+      expect(Checkit.Validator.prototype.parsableDate).to.be.a('function');\n+    });\n+  });\n+\n+  describe('instance', () => {\n+    describe('handles ssn validation constrain', () => {\n+      const checkit = new Checkit({\n+        testInputValue: ['ssn'],\n+      });\n+\n+      describe('return error', () => {\n+        it('for less than 9 characters', () => {\n+          const [err, validated] = checkit.validateSync({\n+            testInputValue: '12345678',\n+          });\n+\n+          const { errors } = err;\n+\n+          expect(validated).to.equal(null);\n+          expect(errors.testInputValue).to.be.an('object');\n+\n+          // Every input can have an array of errors related to the defined constrains\n+          const { errors: inputErrors } = errors.testInputValue;\n+          const ssnError = inputErrors.find(({ rule }) => rule === 'ssn');\n+\n+          expect(ssnError).to.be.an('object');\n+          expect(ssnError.message).to.equal(checkit.messages.ssn);\n+        });\n+\n+        it('for more than 9 characters', () => {\n+          const [err, validated] = checkit.validateSync({\n+            testInputValue: '1234567890',\n+          });\n+\n+          const { errors } = err;\n+\n+          expect(validated).to.equal(null);\n+          expect(errors.testInputValue).to.be.an('object');\n+\n+          // Every input can have an array of errors related to the defined constrains\n+          const { errors: inputErrors } = errors.testInputValue;\n+          const ssnError = inputErrors.find(({ rule }) => rule === 'ssn');\n+\n+          expect(ssnError).to.be.an('object');\n+          expect(ssnError.message).to.equal(checkit.messages.ssn);\n+        });\n+\n+        it('for value with letters', () => {\n+          const [err, validated] = checkit.validateSync({\n+            testInputValue: '1234A6789',","path":"tests/checkit/checkit.test.js","position":70,"original_position":70,"commit_id":"e845393a5b644a7c7478368ef7676d2475867781","original_commit_id":"e845393a5b644a7c7478368ef7676d2475867781","user":{"login":"orlando","id":849872,"node_id":"MDQ6VXNlcjg0OTg3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/849872?v=4","gravatar_id":"","url":"https://api.github.com/users/orlando","html_url":"https://github.com/orlando","followers_url":"https://api.github.com/users/orlando/followers","following_url":"https://api.github.com/users/orlando/following{/other_user}","gists_url":"https://api.github.com/users/orlando/gists{/gist_id}","starred_url":"https://api.github.com/users/orlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlando/subscriptions","organizations_url":"https://api.github.com/users/orlando/orgs","repos_url":"https://api.github.com/users/orlando/repos","events_url":"https://api.github.com/users/orlando/events{/privacy}","received_events_url":"https://api.github.com/users/orlando/received_events","type":"User","site_admin":false},"body":"Test with valid ssn, look for a generator in google; these should have a specific format","created_at":"2019-03-02T18:29:35Z","updated_at":"2019-03-02T18:33:35Z","html_url":"https://github.com/debtcollective/dispute-tools/pull/156#discussion_r261836822","pull_request_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments/261836822"},"html":{"href":"https://github.com/debtcollective/dispute-tools/pull/156#discussion_r261836822"},"pull_request":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156","id":256576114,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU2NTc2MTE0","html_url":"https://github.com/debtcollective/dispute-tools/pull/156","diff_url":"https://github.com/debtcollective/dispute-tools/pull/156.diff","patch_url":"https://github.com/debtcollective/dispute-tools/pull/156.patch","issue_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/156","number":156,"state":"open","locked":false,"title":"Add adjust related to build processes and tests","user":{"login":"duranmla","id":1425162,"node_id":"MDQ6VXNlcjE0MjUxNjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1425162?v=4","gravatar_id":"","url":"https://api.github.com/users/duranmla","html_url":"https://github.com/duranmla","followers_url":"https://api.github.com/users/duranmla/followers","following_url":"https://api.github.com/users/duranmla/following{/other_user}","gists_url":"https://api.github.com/users/duranmla/gists{/gist_id}","starred_url":"https://api.github.com/users/duranmla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duranmla/subscriptions","organizations_url":"https://api.github.com/users/duranmla/orgs","repos_url":"https://api.github.com/users/duranmla/repos","events_url":"https://api.github.com/users/duranmla/events{/privacy}","received_events_url":"https://api.github.com/users/duranmla/received_events","type":"User","site_admin":false},"body":"This PR deprecates `test:form-validations` command and add documentation about that decision, besides, this code adds a way to make sure to run all tests within the CI and add a hook to run tests intended to run locally before pushing using husky.\r\n\r\nFixes #155 ","created_at":"2019-02-27T08:03:25Z","updated_at":"2019-03-02T18:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"001a5e0eb4a13f206adff171da8ef54dbe7c6eab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156/commits","review_comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156/comments","review_comment_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/156/comments","statuses_url":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/e845393a5b644a7c7478368ef7676d2475867781","head":{"label":"debtcollective:ad/155","ref":"ad/155","sha":"e845393a5b644a7c7478368ef7676d2475867781","user":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"repo":{"id":122767402,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI3Njc0MDI=","name":"dispute-tools","full_name":"debtcollective/dispute-tools","private":false,"owner":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/debtcollective/dispute-tools","description":"The Debt Collective dispute tools service","fork":false,"url":"https://api.github.com/repos/debtcollective/dispute-tools","forks_url":"https://api.github.com/repos/debtcollective/dispute-tools/forks","keys_url":"https://api.github.com/repos/debtcollective/dispute-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/debtcollective/dispute-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/debtcollective/dispute-tools/teams","hooks_url":"https://api.github.com/repos/debtcollective/dispute-tools/hooks","issue_events_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/events{/number}","events_url":"https://api.github.com/repos/debtcollective/dispute-tools/events","assignees_url":"https://api.github.com/repos/debtcollective/dispute-tools/assignees{/user}","branches_url":"https://api.github.com/repos/debtcollective/dispute-tools/branches{/branch}","tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/tags","blobs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/debtcollective/dispute-tools/languages","stargazers_url":"https://api.github.com/repos/debtcollective/dispute-tools/stargazers","contributors_url":"https://api.github.com/repos/debtcollective/dispute-tools/contributors","subscribers_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscribers","subscription_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscription","commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/debtcollective/dispute-tools/contents/{+path}","compare_url":"https://api.github.com/repos/debtcollective/dispute-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/debtcollective/dispute-tools/merges","archive_url":"https://api.github.com/repos/debtcollective/dispute-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/debtcollective/dispute-tools/downloads","issues_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues{/number}","pulls_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/debtcollective/dispute-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/debtcollective/dispute-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/debtcollective/dispute-tools/labels{/name}","releases_url":"https://api.github.com/repos/debtcollective/dispute-tools/releases{/id}","deployments_url":"https://api.github.com/repos/debtcollective/dispute-tools/deployments","created_at":"2018-02-24T18:27:05Z","updated_at":"2019-03-01T23:52:51Z","pushed_at":"2019-03-02T12:53:35Z","git_url":"git://github.com/debtcollective/dispute-tools.git","ssh_url":"git@github.com:debtcollective/dispute-tools.git","clone_url":"https://github.com/debtcollective/dispute-tools.git","svn_url":"https://github.com/debtcollective/dispute-tools","homepage":null,"size":23268,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"debtcollective:master","ref":"master","sha":"ba1c19786b3313a1b4e8c7943b0a09b7109b0ee2","user":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"repo":{"id":122767402,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI3Njc0MDI=","name":"dispute-tools","full_name":"debtcollective/dispute-tools","private":false,"owner":{"login":"debtcollective","id":13947390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTQ3Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/13947390?v=4","gravatar_id":"","url":"https://api.github.com/users/debtcollective","html_url":"https://github.com/debtcollective","followers_url":"https://api.github.com/users/debtcollective/followers","following_url":"https://api.github.com/users/debtcollective/following{/other_user}","gists_url":"https://api.github.com/users/debtcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/debtcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debtcollective/subscriptions","organizations_url":"https://api.github.com/users/debtcollective/orgs","repos_url":"https://api.github.com/users/debtcollective/repos","events_url":"https://api.github.com/users/debtcollective/events{/privacy}","received_events_url":"https://api.github.com/users/debtcollective/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/debtcollective/dispute-tools","description":"The Debt Collective dispute tools service","fork":false,"url":"https://api.github.com/repos/debtcollective/dispute-tools","forks_url":"https://api.github.com/repos/debtcollective/dispute-tools/forks","keys_url":"https://api.github.com/repos/debtcollective/dispute-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/debtcollective/dispute-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/debtcollective/dispute-tools/teams","hooks_url":"https://api.github.com/repos/debtcollective/dispute-tools/hooks","issue_events_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/events{/number}","events_url":"https://api.github.com/repos/debtcollective/dispute-tools/events","assignees_url":"https://api.github.com/repos/debtcollective/dispute-tools/assignees{/user}","branches_url":"https://api.github.com/repos/debtcollective/dispute-tools/branches{/branch}","tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/tags","blobs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/debtcollective/dispute-tools/languages","stargazers_url":"https://api.github.com/repos/debtcollective/dispute-tools/stargazers","contributors_url":"https://api.github.com/repos/debtcollective/dispute-tools/contributors","subscribers_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscribers","subscription_url":"https://api.github.com/repos/debtcollective/dispute-tools/subscription","commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/debtcollective/dispute-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/debtcollective/dispute-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/debtcollective/dispute-tools/contents/{+path}","compare_url":"https://api.github.com/repos/debtcollective/dispute-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/debtcollective/dispute-tools/merges","archive_url":"https://api.github.com/repos/debtcollective/dispute-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/debtcollective/dispute-tools/downloads","issues_url":"https://api.github.com/repos/debtcollective/dispute-tools/issues{/number}","pulls_url":"https://api.github.com/repos/debtcollective/dispute-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/debtcollective/dispute-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/debtcollective/dispute-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/debtcollective/dispute-tools/labels{/name}","releases_url":"https://api.github.com/repos/debtcollective/dispute-tools/releases{/id}","deployments_url":"https://api.github.com/repos/debtcollective/dispute-tools/deployments","created_at":"2018-02-24T18:27:05Z","updated_at":"2019-03-01T23:52:51Z","pushed_at":"2019-03-02T12:53:35Z","git_url":"git://github.com/debtcollective/dispute-tools.git","ssh_url":"git@github.com:debtcollective/dispute-tools.git","clone_url":"https://github.com/debtcollective/dispute-tools.git","svn_url":"https://github.com/debtcollective/dispute-tools","homepage":null,"size":23268,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156"},"html":{"href":"https://github.com/debtcollective/dispute-tools/pull/156"},"issue":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/issues/156"},"comments":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/debtcollective/dispute-tools/statuses/e845393a5b644a7c7478368ef7676d2475867781"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"orlando"}}