{"action":"created","comment":{"url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/comments/78534831","id":78534831,"diff_hunk":"@@ -0,0 +1,61 @@\n+'use strict';\n+\n+const _ = require('lodash');\n+\n+const defaults = require('../../lib/defaults')();\n+const parseUrlEnvParams = require('../../lib/url-env-parser');\n+\n+const urlEnvStarts = defaults.urlEnvStarts;\n+\n+describe('url-env-parser', () => {\n+    const sandbox = sinon.sandbox.create();\n+\n+    let result;\n+    let expectedResult;\n+\n+    afterEach(() => {\n+        sandbox.restore();\n+\n+        _.forOwn(process.env, (value, key) => {\n+            if (_.startsWith(key, urlEnvStarts)) {\n+                delete process.env[key];\n+            }\n+        });\n+    });\n+\n+    it(`should return empty object if env vars starting with \"${urlEnvStarts}\" are not set`, () => {\n+        result = parseUrlEnvParams();\n+\n+        assert.deepEqual(result, {});\n+    });\n+\n+    it('should return parsed object with not more than double nesting', () => {\n+        process.env['HERMIONE_URL_RESOURCE_PATH_DIR'] = 'hello/world';\n+\n+        expectedResult = {\n+            resource: {\n+                'path_dir': 'hello/world'","path":"test/lib/url-env-parser.js","position":37,"original_position":37,"commit_id":"ac6c2f80504848b60ce3dd9167675c0d5f627d96","original_commit_id":"ac6c2f80504848b60ce3dd9167675c0d5f627d96","user":{"login":"j0tunn","id":7701229,"avatar_url":"https://avatars.githubusercontent.com/u/7701229?v=3","gravatar_id":"","url":"https://api.github.com/users/j0tunn","html_url":"https://github.com/j0tunn","followers_url":"https://api.github.com/users/j0tunn/followers","following_url":"https://api.github.com/users/j0tunn/following{/other_user}","gists_url":"https://api.github.com/users/j0tunn/gists{/gist_id}","starred_url":"https://api.github.com/users/j0tunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0tunn/subscriptions","organizations_url":"https://api.github.com/users/j0tunn/orgs","repos_url":"https://api.github.com/users/j0tunn/repos","events_url":"https://api.github.com/users/j0tunn/events{/privacy}","received_events_url":"https://api.github.com/users/j0tunn/received_events","type":"User","site_admin":false},"body":"а как можно указать параметр в camelCase?","created_at":"2016-09-13T10:38:47Z","updated_at":"2016-09-13T10:38:47Z","html_url":"https://github.com/gemini-testing/hermione-url-decorator/pull/1#discussion_r78534831","pull_request_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/comments/78534831"},"html":{"href":"https://github.com/gemini-testing/hermione-url-decorator/pull/1#discussion_r78534831"},"pull_request":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1","id":84996087,"html_url":"https://github.com/gemini-testing/hermione-url-decorator/pull/1","diff_url":"https://github.com/gemini-testing/hermione-url-decorator/pull/1.diff","patch_url":"https://github.com/gemini-testing/hermione-url-decorator/pull/1.patch","issue_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/1","number":1,"state":"open","locked":false,"title":"init","user":{"login":"DudaGod","id":5900697,"avatar_url":"https://avatars.githubusercontent.com/u/5900697?v=3","gravatar_id":"","url":"https://api.github.com/users/DudaGod","html_url":"https://github.com/DudaGod","followers_url":"https://api.github.com/users/DudaGod/followers","following_url":"https://api.github.com/users/DudaGod/following{/other_user}","gists_url":"https://api.github.com/users/DudaGod/gists{/gist_id}","starred_url":"https://api.github.com/users/DudaGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DudaGod/subscriptions","organizations_url":"https://api.github.com/users/DudaGod/orgs","repos_url":"https://api.github.com/users/DudaGod/repos","events_url":"https://api.github.com/users/DudaGod/events{/privacy}","received_events_url":"https://api.github.com/users/DudaGod/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-13T07:13:43Z","updated_at":"2016-09-13T10:38:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5b6194d7b69bbe146fac8724248e8bcd62686d9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/1/comments","statuses_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/statuses/ac6c2f80504848b60ce3dd9167675c0d5f627d96","head":{"label":"gemini-testing:init_branch","ref":"init_branch","sha":"ac6c2f80504848b60ce3dd9167675c0d5f627d96","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":66373819,"name":"hermione-url-decorator","full_name":"gemini-testing/hermione-url-decorator","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/hermione-url-decorator","description":null,"fork":false,"url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator","forks_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/forks","keys_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/teams","hooks_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/events","assignees_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/tags","blobs_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/subscription","commits_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/merges","archive_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/downloads","issues_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/deployments","created_at":"2016-08-23T14:20:41Z","updated_at":"2016-08-23T14:20:41Z","pushed_at":"2016-09-13T08:47:32Z","git_url":"git://github.com/gemini-testing/hermione-url-decorator.git","ssh_url":"git@github.com:gemini-testing/hermione-url-decorator.git","clone_url":"https://github.com/gemini-testing/hermione-url-decorator.git","svn_url":"https://github.com/gemini-testing/hermione-url-decorator","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"gemini-testing:master","ref":"master","sha":"47d89d4d7afcae60c24725eba2021ec31f12d294","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":66373819,"name":"hermione-url-decorator","full_name":"gemini-testing/hermione-url-decorator","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/hermione-url-decorator","description":null,"fork":false,"url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator","forks_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/forks","keys_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/teams","hooks_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/events","assignees_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/tags","blobs_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/subscription","commits_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/merges","archive_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/downloads","issues_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/deployments","created_at":"2016-08-23T14:20:41Z","updated_at":"2016-08-23T14:20:41Z","pushed_at":"2016-09-13T08:47:32Z","git_url":"git://github.com/gemini-testing/hermione-url-decorator.git","ssh_url":"git@github.com:gemini-testing/hermione-url-decorator.git","clone_url":"https://github.com/gemini-testing/hermione-url-decorator.git","svn_url":"https://github.com/gemini-testing/hermione-url-decorator","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1"},"html":{"href":"https://github.com/gemini-testing/hermione-url-decorator/pull/1"},"issue":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/1"},"comments":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gemini-testing/hermione-url-decorator/statuses/ac6c2f80504848b60ce3dd9167675c0d5f627d96"}}}}
{"actor":{"display_login":"j0tunn"}}