{"action":"created","comment":{"url":"https://api.github.com/repos/enb-make/enb/pulls/comments/36511637","id":36511637,"diff_hunk":"@@ -0,0 +1,794 @@\n+var path = require('path');\n+var chai = require('chai');\n+var sinon = require('sinon');\n+var sinonChai = require('sinon-chai');\n+var expect = chai.expect;\n+var ProjectConfig = require('../../../lib/config/project-config');\n+var NodeConfig = require('../../../lib/config/node-config');\n+var NodeMaskConfig = require('../../../lib/config/node-mask-config');\n+var TaskConfig = require('../../../lib/config/task-config');\n+var ModeConfig = require('../../../lib/config/mode-config');\n+var ModuleConfig = require('../../../lib/config/module-config');\n+\n+chai.use(sinonChai);\n+\n+describe('config/project-config', function () {\n+    var projectRoot = path.join(__dirname, '../../fixtures/sample-project');\n+    var projectConfig;\n+\n+    beforeEach(function () {\n+        projectConfig = new ProjectConfig(projectRoot);\n+    });\n+\n+    describe('constructor', function () {\n+        it('should set root path', function () {\n+            expect(projectConfig.getRootPath()).to.be.equal(projectRoot);\n+        });\n+\n+        it('should create container for node configs', function () {\n+            expect(projectConfig.getNodeConfigs()).to.exist\n+                .and.to.be.instanceOf(Object)\n+                .and.to.be.empty;\n+        });\n+\n+        it('should create container for tasks', function () {\n+            expect(projectConfig.getTaskConfigs()).to.exist\n+                .and.to.be.instanceOf(Object)\n+                .and.to.be.empty;\n+        });\n+\n+        it('shoud create container for node mask configs', function () {\n+            expect(projectConfig.getNodeMaskConfigs()).to.exist\n+                .and.to.be.instanceOf(Array)\n+                .and.to.be.empty;\n+        });\n+\n+        it('should define property for languages container', function () {\n+            expect(projectConfig).to.have.property('_languages');\n+        });\n+\n+        it('should not create container for languages', function () {\n+            expect(projectConfig.getLanguages()).to.be.null;\n+        });\n+\n+        it('should create container for level naming schemes', function () {\n+            expect(projectConfig.getLevelNamingSchemes()).to.exist\n+                .and.to.be.instanceOf(Array)\n+                .and.to.be.empty;\n+        });\n+\n+        it('should create container for registering modules', function () {\n+            expect(projectConfig._modules).to.exist\n+                .and.to.be.instanceOf(Object)\n+                .and.to.be.empty;\n+        });\n+\n+        it('should create container for mode configs', function () {\n+            expect(projectConfig.getModeConfigs()).to.exist\n+                .and.to.be.instanceOf(Object)","path":"test/lib/config/project-config.js","position":68,"original_position":68,"commit_id":"48f1d915a4c367d06d8ed7451fc3490eb7964698","original_commit_id":"48f1d915a4c367d06d8ed7451fc3490eb7964698","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-07T11:54:25Z","updated_at":"2015-08-07T11:54:25Z","html_url":"https://github.com/enb-make/enb/pull/311#discussion_r36511637","pull_request_url":"https://api.github.com/repos/enb-make/enb/pulls/311","_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb/pulls/comments/36511637"},"html":{"href":"https://github.com/enb-make/enb/pull/311#discussion_r36511637"},"pull_request":{"href":"https://api.github.com/repos/enb-make/enb/pulls/311"}}},"pull_request":{"url":"https://api.github.com/repos/enb-make/enb/pulls/311","id":41803779,"html_url":"https://github.com/enb-make/enb/pull/311","diff_url":"https://github.com/enb-make/enb/pull/311.diff","patch_url":"https://github.com/enb-make/enb/pull/311.patch","issue_url":"https://api.github.com/repos/enb-make/enb/issues/311","number":311,"state":"open","locked":false,"title":"Tests for config/project-config","user":{"login":"SwinX","id":854899,"avatar_url":"https://avatars.githubusercontent.com/u/854899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwinX","html_url":"https://github.com/SwinX","followers_url":"https://api.github.com/users/SwinX/followers","following_url":"https://api.github.com/users/SwinX/following{/other_user}","gists_url":"https://api.github.com/users/SwinX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwinX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwinX/subscriptions","organizations_url":"https://api.github.com/users/SwinX/orgs","repos_url":"https://api.github.com/users/SwinX/repos","events_url":"https://api.github.com/users/SwinX/events{/privacy}","received_events_url":"https://api.github.com/users/SwinX/received_events","type":"User","site_admin":false},"body":"resolves #286 ","created_at":"2015-08-06T15:53:03Z","updated_at":"2015-08-07T11:54:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a31ef56a573e26a0464abb03ac754c93ec03bb80","assignee":{"login":"SwinX","id":854899,"avatar_url":"https://avatars.githubusercontent.com/u/854899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwinX","html_url":"https://github.com/SwinX","followers_url":"https://api.github.com/users/SwinX/followers","following_url":"https://api.github.com/users/SwinX/following{/other_user}","gists_url":"https://api.github.com/users/SwinX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwinX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwinX/subscriptions","organizations_url":"https://api.github.com/users/SwinX/orgs","repos_url":"https://api.github.com/users/SwinX/repos","events_url":"https://api.github.com/users/SwinX/events{/privacy}","received_events_url":"https://api.github.com/users/SwinX/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/enb-make/enb/pulls/311/commits","review_comments_url":"https://api.github.com/repos/enb-make/enb/pulls/311/comments","review_comment_url":"https://api.github.com/repos/enb-make/enb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb-make/enb/issues/311/comments","statuses_url":"https://api.github.com/repos/enb-make/enb/statuses/48f1d915a4c367d06d8ed7451fc3490eb7964698","head":{"label":"enb-make:issue-286","ref":"issue-286","sha":"48f1d915a4c367d06d8ed7451fc3490eb7964698","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":10054361,"name":"enb","full_name":"enb-make/enb","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","description":"Faster BEM/BEViS assembler","fork":false,"url":"https://api.github.com/repos/enb-make/enb","forks_url":"https://api.github.com/repos/enb-make/enb/forks","keys_url":"https://api.github.com/repos/enb-make/enb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb/teams","hooks_url":"https://api.github.com/repos/enb-make/enb/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb/events","assignees_url":"https://api.github.com/repos/enb-make/enb/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb/tags","blobs_url":"https://api.github.com/repos/enb-make/enb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb/subscription","commits_url":"https://api.github.com/repos/enb-make/enb/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb/merges","archive_url":"https://api.github.com/repos/enb-make/enb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb/downloads","issues_url":"https://api.github.com/repos/enb-make/enb/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb/releases{/id}","created_at":"2013-05-14T12:15:32Z","updated_at":"2015-08-01T18:56:54Z","pushed_at":"2015-08-06T20:23:24Z","git_url":"git://github.com/enb-make/enb.git","ssh_url":"git@github.com:enb-make/enb.git","clone_url":"https://github.com/enb-make/enb.git","svn_url":"https://github.com/enb-make/enb","homepage":"http://enb-make.info","size":3765,"stargazers_count":98,"watchers_count":98,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":47,"forks":46,"open_issues":47,"watchers":98,"default_branch":"master"}},"base":{"label":"enb-make:master","ref":"master","sha":"db118b2063c9ed203e561dc7bffb6a68cc017d61","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":10054361,"name":"enb","full_name":"enb-make/enb","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","description":"Faster BEM/BEViS assembler","fork":false,"url":"https://api.github.com/repos/enb-make/enb","forks_url":"https://api.github.com/repos/enb-make/enb/forks","keys_url":"https://api.github.com/repos/enb-make/enb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb/teams","hooks_url":"https://api.github.com/repos/enb-make/enb/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb/events","assignees_url":"https://api.github.com/repos/enb-make/enb/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb/tags","blobs_url":"https://api.github.com/repos/enb-make/enb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb/subscription","commits_url":"https://api.github.com/repos/enb-make/enb/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb/merges","archive_url":"https://api.github.com/repos/enb-make/enb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb/downloads","issues_url":"https://api.github.com/repos/enb-make/enb/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb/releases{/id}","created_at":"2013-05-14T12:15:32Z","updated_at":"2015-08-01T18:56:54Z","pushed_at":"2015-08-06T20:23:24Z","git_url":"git://github.com/enb-make/enb.git","ssh_url":"git@github.com:enb-make/enb.git","clone_url":"https://github.com/enb-make/enb.git","svn_url":"https://github.com/enb-make/enb","homepage":"http://enb-make.info","size":3765,"stargazers_count":98,"watchers_count":98,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":47,"forks":46,"open_issues":47,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb/pulls/311"},"html":{"href":"https://github.com/enb-make/enb/pull/311"},"issue":{"href":"https://api.github.com/repos/enb-make/enb/issues/311"},"comments":{"href":"https://api.github.com/repos/enb-make/enb/issues/311/comments"},"review_comments":{"href":"https://api.github.com/repos/enb-make/enb/pulls/311/comments"},"review_comment":{"href":"https://api.github.com/repos/enb-make/enb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb-make/enb/pulls/311/commits"},"statuses":{"href":"https://api.github.com/repos/enb-make/enb/statuses/48f1d915a4c367d06d8ed7451fc3490eb7964698"}}}}