{"action":"created","comment":{"url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/comments/81078515","pull_request_review_id":2084349,"id":81078515,"diff_hunk":"@@ -0,0 +1,568 @@\n+'use strict';\n+\n+var chai = require('chai');\n+var expect = chai.expect;\n+var datasets = require('../../app/datasets');\n+\n+describe('Lodash training', function () {\n+    var params;\n+\n+    describe('camelCase', function () {\n+        before(function () {\n+            params = datasets.camelCase();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should convert string to camel case', function () {\n+                expect(_.camelCase.apply(_, params)).to.eql('someStringToTestFunction');\n+            }\n+        );\n+    });\n+\n+    describe('capitalize', function () {\n+        before(function () {\n+            params = datasets.capitalize();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should convert the first character of string to upper case and the remaining to lower case', function () {\n+                expect(_.capitalize.apply(_, params)).to.eql('Some string to test function');\n+            }\n+        );\n+    });\n+\n+    describe('deburr', function () {\n+        before(function () {\n+            params = datasets.deburr();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should remove combining diacritical marks from string', function () {\n+                expect(_.deburr.apply(_, params)).to.eql('some string to test function');\n+            }\n+        );\n+    });\n+\n+    describe('endsWith', function () {\n+        before(function () {\n+            params = datasets.endsWith();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params[1]).to.be.a('string');\n+            expect(params).to.have.length.within(2, 3);\n+            if (params[2] !== undefined && params.length === 3) {\n+                expect(Number.isInteger(params[2])).to.eql(true);\n+            }\n+        });\n+        it('should check if letter on given position is a target string', function () {\n+                expect(params[0][params[2] - 1]).to.eql(params[1]);\n+            }\n+        );\n+        it('should check if string ends with the given target string', function () {\n+                expect(_.endsWith.apply(_, params)).to.eql(true);\n+            }\n+        );\n+    });\n+\n+    describe('escape', function () {\n+        before(function () {\n+            params = datasets.escape();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should return converted string', function () {\n+                expect(_.escape.apply(_, params)).to.eql('Tom &amp; Jerry are old friends');\n+            }\n+        );\n+    });\n+\n+    describe('escapeRegExp', function () {\n+        before(function () {\n+            params = datasets.escapeRegExp();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should return converted string', function () {\n+                expect(_.escapeRegExp.apply(_, params)).to.eql('\\\\[realskill\\\\]\\\\(https://realskill\\\\.com/\\\\)');\n+            }\n+        );\n+    });\n+\n+    describe('kebabCase', function () {\n+        before(function () {\n+            params = datasets.kebabCase();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('shold return transformed string', function () {\n+                expect(_.kebabCase.apply(_, params)).to.eql('some-string-to-test-function');\n+            }\n+        );\n+    });\n+\n+    describe('lowerCase', function () {\n+        before(function () {\n+            params = datasets.lowerCase();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should return string converted to lowercase', function () {\n+                expect(_.lowerCase.apply(_, params)).to.eql('some string to test function');\n+            }\n+        );\n+    });\n+\n+    describe('lowerFirst', function () {\n+        before(function () {\n+            params = datasets.lowerFirst();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(params).to.have.length(1);\n+        });\n+        it('should return converted string with first letter in lowercase', function () {\n+                expect(_.lowerFirst.apply(_, params)).to.eql('sOME STRING TO TEST FUNCTION');\n+            }\n+        );\n+    });\n+\n+    describe('pad', function () {\n+        before(function () {\n+            params = datasets.pad();\n+        });\n+        it('should match types of passing elements', function () {\n+            expect(params[0]).to.be.a('string');\n+            expect(Number.isInteger(params[1])).to.eql(true);\n+            expect(params[1]).to.be.above(params[0].length);\n+            expect(params).to.have.length.within(2, 3);\n+            if (params[2] !== undefined && params.length === 3) {","path":"test/unit/lodash.spec.js","position":182,"original_position":153,"commit_id":"19a97e03f4d200d829d749ee31216904d524ee26","original_commit_id":"69923e5ab363e2702d67791cb70d65c89440b8eb","user":{"login":"striok","id":9091747,"avatar_url":"https://avatars.githubusercontent.com/u/9091747?v=3","gravatar_id":"","url":"https://api.github.com/users/striok","html_url":"https://github.com/striok","followers_url":"https://api.github.com/users/striok/followers","following_url":"https://api.github.com/users/striok/following{/other_user}","gists_url":"https://api.github.com/users/striok/gists{/gist_id}","starred_url":"https://api.github.com/users/striok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/striok/subscriptions","organizations_url":"https://api.github.com/users/striok/orgs","repos_url":"https://api.github.com/users/striok/repos","events_url":"https://api.github.com/users/striok/events{/privacy}","received_events_url":"https://api.github.com/users/striok/received_events","type":"User","site_admin":false},"body":"Solution still showed underneath required third parameter","created_at":"2016-09-29T07:28:26Z","updated_at":"2016-09-29T07:28:26Z","html_url":"https://github.com/Real-Skill/javascript-tasks/pull/16#discussion_r81078515","pull_request_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/comments/81078515"},"html":{"href":"https://github.com/Real-Skill/javascript-tasks/pull/16#discussion_r81078515"},"pull_request":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16","id":71036861,"html_url":"https://github.com/Real-Skill/javascript-tasks/pull/16","diff_url":"https://github.com/Real-Skill/javascript-tasks/pull/16.diff","patch_url":"https://github.com/Real-Skill/javascript-tasks/pull/16.patch","issue_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues/16","number":16,"state":"open","locked":false,"title":"Lodash string","user":{"login":"ps7duck","id":7165997,"avatar_url":"https://avatars.githubusercontent.com/u/7165997?v=3","gravatar_id":"","url":"https://api.github.com/users/ps7duck","html_url":"https://github.com/ps7duck","followers_url":"https://api.github.com/users/ps7duck/followers","following_url":"https://api.github.com/users/ps7duck/following{/other_user}","gists_url":"https://api.github.com/users/ps7duck/gists{/gist_id}","starred_url":"https://api.github.com/users/ps7duck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ps7duck/subscriptions","organizations_url":"https://api.github.com/users/ps7duck/orgs","repos_url":"https://api.github.com/users/ps7duck/repos","events_url":"https://api.github.com/users/ps7duck/events{/privacy}","received_events_url":"https://api.github.com/users/ps7duck/received_events","type":"User","site_admin":false},"body":"template test to check","created_at":"2016-05-23T10:17:09Z","updated_at":"2016-09-29T07:28:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c515afd26e3dc3dbfd383314391be495940efd72","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues/16/comments","statuses_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/statuses/19a97e03f4d200d829d749ee31216904d524ee26","head":{"label":"ps7duck:lodash-string","ref":"lodash-string","sha":"19a97e03f4d200d829d749ee31216904d524ee26","user":{"login":"ps7duck","id":7165997,"avatar_url":"https://avatars.githubusercontent.com/u/7165997?v=3","gravatar_id":"","url":"https://api.github.com/users/ps7duck","html_url":"https://github.com/ps7duck","followers_url":"https://api.github.com/users/ps7duck/followers","following_url":"https://api.github.com/users/ps7duck/following{/other_user}","gists_url":"https://api.github.com/users/ps7duck/gists{/gist_id}","starred_url":"https://api.github.com/users/ps7duck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ps7duck/subscriptions","organizations_url":"https://api.github.com/users/ps7duck/orgs","repos_url":"https://api.github.com/users/ps7duck/repos","events_url":"https://api.github.com/users/ps7duck/events{/privacy}","received_events_url":"https://api.github.com/users/ps7duck/received_events","type":"User","site_admin":false},"repo":{"id":55615485,"name":"javascript-tasks","full_name":"ps7duck/javascript-tasks","owner":{"login":"ps7duck","id":7165997,"avatar_url":"https://avatars.githubusercontent.com/u/7165997?v=3","gravatar_id":"","url":"https://api.github.com/users/ps7duck","html_url":"https://github.com/ps7duck","followers_url":"https://api.github.com/users/ps7duck/followers","following_url":"https://api.github.com/users/ps7duck/following{/other_user}","gists_url":"https://api.github.com/users/ps7duck/gists{/gist_id}","starred_url":"https://api.github.com/users/ps7duck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ps7duck/subscriptions","organizations_url":"https://api.github.com/users/ps7duck/orgs","repos_url":"https://api.github.com/users/ps7duck/repos","events_url":"https://api.github.com/users/ps7duck/events{/privacy}","received_events_url":"https://api.github.com/users/ps7duck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ps7duck/javascript-tasks","description":"JavaScript exercises and tasks for RealSkill","fork":true,"url":"https://api.github.com/repos/ps7duck/javascript-tasks","forks_url":"https://api.github.com/repos/ps7duck/javascript-tasks/forks","keys_url":"https://api.github.com/repos/ps7duck/javascript-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ps7duck/javascript-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ps7duck/javascript-tasks/teams","hooks_url":"https://api.github.com/repos/ps7duck/javascript-tasks/hooks","issue_events_url":"https://api.github.com/repos/ps7duck/javascript-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/ps7duck/javascript-tasks/events","assignees_url":"https://api.github.com/repos/ps7duck/javascript-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/ps7duck/javascript-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/ps7duck/javascript-tasks/tags","blobs_url":"https://api.github.com/repos/ps7duck/javascript-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ps7duck/javascript-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ps7duck/javascript-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/ps7duck/javascript-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ps7duck/javascript-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/ps7duck/javascript-tasks/languages","stargazers_url":"https://api.github.com/repos/ps7duck/javascript-tasks/stargazers","contributors_url":"https://api.github.com/repos/ps7duck/javascript-tasks/contributors","subscribers_url":"https://api.github.com/repos/ps7duck/javascript-tasks/subscribers","subscription_url":"https://api.github.com/repos/ps7duck/javascript-tasks/subscription","commits_url":"https://api.github.com/repos/ps7duck/javascript-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/ps7duck/javascript-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/ps7duck/javascript-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/ps7duck/javascript-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/ps7duck/javascript-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/ps7duck/javascript-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ps7duck/javascript-tasks/merges","archive_url":"https://api.github.com/repos/ps7duck/javascript-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ps7duck/javascript-tasks/downloads","issues_url":"https://api.github.com/repos/ps7duck/javascript-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/ps7duck/javascript-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/ps7duck/javascript-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/ps7duck/javascript-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ps7duck/javascript-tasks/labels{/name}","releases_url":"https://api.github.com/repos/ps7duck/javascript-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/ps7duck/javascript-tasks/deployments","created_at":"2016-04-06T15:01:11Z","updated_at":"2016-04-06T15:01:11Z","pushed_at":"2016-09-28T16:30:47Z","git_url":"git://github.com/ps7duck/javascript-tasks.git","ssh_url":"git@github.com:ps7duck/javascript-tasks.git","clone_url":"https://github.com/ps7duck/javascript-tasks.git","svn_url":"https://github.com/ps7duck/javascript-tasks","homepage":"http://realskill.io","size":1335,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Real-Skill:lodash-string","ref":"lodash-string","sha":"45fee8da6714150ec574d157e780b10e9db1d572","user":{"login":"Real-Skill","id":11490234,"avatar_url":"https://avatars.githubusercontent.com/u/11490234?v=3","gravatar_id":"","url":"https://api.github.com/users/Real-Skill","html_url":"https://github.com/Real-Skill","followers_url":"https://api.github.com/users/Real-Skill/followers","following_url":"https://api.github.com/users/Real-Skill/following{/other_user}","gists_url":"https://api.github.com/users/Real-Skill/gists{/gist_id}","starred_url":"https://api.github.com/users/Real-Skill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Real-Skill/subscriptions","organizations_url":"https://api.github.com/users/Real-Skill/orgs","repos_url":"https://api.github.com/users/Real-Skill/repos","events_url":"https://api.github.com/users/Real-Skill/events{/privacy}","received_events_url":"https://api.github.com/users/Real-Skill/received_events","type":"Organization","site_admin":false},"repo":{"id":42767280,"name":"javascript-tasks","full_name":"Real-Skill/javascript-tasks","owner":{"login":"Real-Skill","id":11490234,"avatar_url":"https://avatars.githubusercontent.com/u/11490234?v=3","gravatar_id":"","url":"https://api.github.com/users/Real-Skill","html_url":"https://github.com/Real-Skill","followers_url":"https://api.github.com/users/Real-Skill/followers","following_url":"https://api.github.com/users/Real-Skill/following{/other_user}","gists_url":"https://api.github.com/users/Real-Skill/gists{/gist_id}","starred_url":"https://api.github.com/users/Real-Skill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Real-Skill/subscriptions","organizations_url":"https://api.github.com/users/Real-Skill/orgs","repos_url":"https://api.github.com/users/Real-Skill/repos","events_url":"https://api.github.com/users/Real-Skill/events{/privacy}","received_events_url":"https://api.github.com/users/Real-Skill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Real-Skill/javascript-tasks","description":"JavaScript exercises and tasks for RealSkill","fork":false,"url":"https://api.github.com/repos/Real-Skill/javascript-tasks","forks_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/forks","keys_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/teams","hooks_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/hooks","issue_events_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/events","assignees_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/tags","blobs_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/languages","stargazers_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/stargazers","contributors_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/contributors","subscribers_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/subscribers","subscription_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/subscription","commits_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/merges","archive_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/downloads","issues_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/labels{/name}","releases_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/Real-Skill/javascript-tasks/deployments","created_at":"2015-09-19T09:26:29Z","updated_at":"2016-04-20T16:13:54Z","pushed_at":"2016-09-28T16:30:47Z","git_url":"git://github.com/Real-Skill/javascript-tasks.git","ssh_url":"git@github.com:Real-Skill/javascript-tasks.git","clone_url":"https://github.com/Real-Skill/javascript-tasks.git","svn_url":"https://github.com/Real-Skill/javascript-tasks","homepage":"http://realskill.io","size":1397,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":13,"forks":12,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16"},"html":{"href":"https://github.com/Real-Skill/javascript-tasks/pull/16"},"issue":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues/16"},"comments":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Real-Skill/javascript-tasks/statuses/19a97e03f4d200d829d749ee31216904d524ee26"}}}}
{"actor":{"display_login":"striok"}}