{"action":"created","comment":{"url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/comments/37752942","id":37752942,"diff_hunk":"@@ -0,0 +1,170 @@\n+var EOL = require('os').EOL,\n+    fs = require('fs'),\n+    path = require('path'),\n+    mock = require('mock-fs'),\n+    FileList = require('enb/lib/file-list'),\n+    dropRequireCache = require('enb/lib/fs/drop-require-cache'),\n+    MockNode = require('mock-enb/lib/mock-node'),\n+    Tech = require('../../techs/priv-commonjs');\n+\n+describe('priv-server', function () {\n+    var count, privJSCore, fakePrivJSCore, block1, block2, targetPath;\n+\n+    before(function () {\n+        privJSCore = fs.readFileSync(require.resolve('priv-js/lib/priv.js'));\n+        fakePrivJSCore = fs.readFileSync('./test/fixtures/fake.priv.js');\n+        block1 = fs.readFileSync('./test/fixtures/block1.priv.js');\n+        block2 = fs.readFileSync('./test/fixtures/block2.priv.js');\n+        targetPath = path.resolve('./bundle/bundle.priv.js');\n+        count = 0;\n+    });\n+\n+    afterEach(function () {\n+        mock.restore();\n+    });\n+\n+    it('must build common priv-js bundle', function () {\n+        return build({})","path":"test/techs/priv-commonjs.test.js","position":27,"original_position":27,"commit_id":"8042e348219d797713775a219593b1917122dbe8","original_commit_id":"8042e348219d797713775a219593b1917122dbe8","user":{"login":"blond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/blond","html_url":"https://github.com/blond","followers_url":"https://api.github.com/users/blond/followers","following_url":"https://api.github.com/users/blond/following{/other_user}","gists_url":"https://api.github.com/users/blond/gists{/gist_id}","starred_url":"https://api.github.com/users/blond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blond/subscriptions","organizations_url":"https://api.github.com/users/blond/orgs","repos_url":"https://api.github.com/users/blond/repos","events_url":"https://api.github.com/users/blond/events{/privacy}","received_events_url":"https://api.github.com/users/blond/received_events","type":"User","site_admin":false},"body":"Выглядит не очевидно, лучше вынести значение по умолчанию явно.","created_at":"2015-08-24T13:54:52Z","updated_at":"2015-08-24T13:54:52Z","html_url":"https://github.com/enb-make/enb-priv-js/pull/27#discussion_r37752942","pull_request_url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/comments/37752942"},"html":{"href":"https://github.com/enb-make/enb-priv-js/pull/27#discussion_r37752942"},"pull_request":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27","id":43165782,"html_url":"https://github.com/enb-make/enb-priv-js/pull/27","diff_url":"https://github.com/enb-make/enb-priv-js/pull/27.diff","patch_url":"https://github.com/enb-make/enb-priv-js/pull/27.patch","issue_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues/27","number":27,"state":"open","locked":false,"title":"Implement priv-commonjs technology","user":{"login":"tormozz48","id":996162,"avatar_url":"https://avatars.githubusercontent.com/u/996162?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozz48","html_url":"https://github.com/tormozz48","followers_url":"https://api.github.com/users/tormozz48/followers","following_url":"https://api.github.com/users/tormozz48/following{/other_user}","gists_url":"https://api.github.com/users/tormozz48/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozz48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozz48/subscriptions","organizations_url":"https://api.github.com/users/tormozz48/orgs","repos_url":"https://api.github.com/users/tormozz48/repos","events_url":"https://api.github.com/users/tormozz48/events{/privacy}","received_events_url":"https://api.github.com/users/tormozz48/received_events","type":"User","site_admin":false},"body":"Resolved #26 \r\n\r\nAlso jsdoc was actualized\r\n@blond \r\nPlease review it","created_at":"2015-08-24T11:44:30Z","updated_at":"2015-08-24T13:54:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95bfe58b55796fe4af40a160ff37ce312b2eac77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27/commits","review_comments_url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27/comments","review_comment_url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues/27/comments","statuses_url":"https://api.github.com/repos/enb-make/enb-priv-js/statuses/8042e348219d797713775a219593b1917122dbe8","head":{"label":"enb-make:issue-26","ref":"issue-26","sha":"8042e348219d797713775a219593b1917122dbe8","user":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"repo":{"id":19945721,"name":"enb-priv-js","full_name":"enb-make/enb-priv-js","owner":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-make/enb-priv-js","description":"","fork":false,"url":"https://api.github.com/repos/enb-make/enb-priv-js","forks_url":"https://api.github.com/repos/enb-make/enb-priv-js/forks","keys_url":"https://api.github.com/repos/enb-make/enb-priv-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb-priv-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb-priv-js/teams","hooks_url":"https://api.github.com/repos/enb-make/enb-priv-js/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb-priv-js/events","assignees_url":"https://api.github.com/repos/enb-make/enb-priv-js/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb-priv-js/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb-priv-js/tags","blobs_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb-priv-js/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb-priv-js/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb-priv-js/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb-priv-js/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb-priv-js/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb-priv-js/subscription","commits_url":"https://api.github.com/repos/enb-make/enb-priv-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb-priv-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb-priv-js/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb-priv-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb-priv-js/merges","archive_url":"https://api.github.com/repos/enb-make/enb-priv-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb-priv-js/downloads","issues_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb-priv-js/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb-priv-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb-priv-js/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb-priv-js/releases{/id}","created_at":"2014-05-19T14:49:30Z","updated_at":"2015-07-03T04:39:11Z","pushed_at":"2015-08-24T11:53:35Z","git_url":"git://github.com/enb-make/enb-priv-js.git","ssh_url":"git@github.com:enb-make/enb-priv-js.git","clone_url":"https://github.com/enb-make/enb-priv-js.git","svn_url":"https://github.com/enb-make/enb-priv-js","homepage":null,"size":241,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":13,"forks":4,"open_issues":13,"watchers":1,"default_branch":"master"}},"base":{"label":"enb-make:3.x","ref":"3.x","sha":"9fef44ae75d132128eb755337099b8b2c76cee5b","user":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"repo":{"id":19945721,"name":"enb-priv-js","full_name":"enb-make/enb-priv-js","owner":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-make/enb-priv-js","description":"","fork":false,"url":"https://api.github.com/repos/enb-make/enb-priv-js","forks_url":"https://api.github.com/repos/enb-make/enb-priv-js/forks","keys_url":"https://api.github.com/repos/enb-make/enb-priv-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb-priv-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb-priv-js/teams","hooks_url":"https://api.github.com/repos/enb-make/enb-priv-js/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb-priv-js/events","assignees_url":"https://api.github.com/repos/enb-make/enb-priv-js/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb-priv-js/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb-priv-js/tags","blobs_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb-priv-js/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb-priv-js/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb-priv-js/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb-priv-js/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb-priv-js/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb-priv-js/subscription","commits_url":"https://api.github.com/repos/enb-make/enb-priv-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb-priv-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb-priv-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb-priv-js/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb-priv-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb-priv-js/merges","archive_url":"https://api.github.com/repos/enb-make/enb-priv-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb-priv-js/downloads","issues_url":"https://api.github.com/repos/enb-make/enb-priv-js/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb-priv-js/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb-priv-js/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb-priv-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb-priv-js/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb-priv-js/releases{/id}","created_at":"2014-05-19T14:49:30Z","updated_at":"2015-07-03T04:39:11Z","pushed_at":"2015-08-24T11:53:35Z","git_url":"git://github.com/enb-make/enb-priv-js.git","ssh_url":"git@github.com:enb-make/enb-priv-js.git","clone_url":"https://github.com/enb-make/enb-priv-js.git","svn_url":"https://github.com/enb-make/enb-priv-js","homepage":null,"size":241,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":13,"forks":4,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27"},"html":{"href":"https://github.com/enb-make/enb-priv-js/pull/27"},"issue":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/issues/27"},"comments":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/enb-make/enb-priv-js/statuses/8042e348219d797713775a219593b1917122dbe8"}}}}