{"action":"created","comment":{"url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/comments/74429754","id":74429754,"diff_hunk":"@@ -1,105 +1,105 @@\n-import Validation from '../../src/js/components/validation';\n-import emitter from '../../src/js/utils/emitter';\n+import Validation from 'scripts/components/validation'\n+import emitter from 'scripts/utils/emitter'\n \n describe('Validation spec', () => {\n-  var instance, $fixture;\n+  var instance, $fixture\n \n   before(() => {\n-    fixture.setBase('test/fixture');\n-  });\n+    fixture.setBase('test/fixture')\n+  })\n \n   beforeEach(() => {\n-    $fixture = $(fixture.load('validation.html')[0]);\n+    $fixture = $(fixture.load('validation.html')[0])\n \n-    instance = new Validation($fixture);\n-  });\n+    instance = new Validation($fixture)\n+  })\n \n   afterEach(() => {\n-    fixture.cleanup();\n-  });\n+    fixture.cleanup()\n+  })\n \n   describe('init spec', () => {\n     it('should call bindListeners', sinon.test(function() {\n-      let spy = this.spy(instance, 'bindListeners');\n+      let spy = this.spy(instance, 'bindListeners')\n \n-      instance.init();\n+      instance.init()\n \n-      expect(spy.calledOnce).to.be.true;\n-    }));\n-  });\n+      expect(spy.calledOnce).to.be.true\n+    }))\n+  })\n \n   describe('bindListeners', () => {\n     it('should set validate as a handler for options.events', sinon.test(function() {\n-      let spy = this.spy(instance, 'validate');\n+      let spy = this.spy(instance, 'validate')\n \n-      instance.init();\n-      instance._fields.first().trigger('blur');\n+      instance.init()\n+      instance._fields.first().trigger('blur')\n \n-      expect(spy.calledOnce).to.be.true;\n-    }));\n-  });\n+      expect(spy.calledOnce).to.be.true\n+    }))\n+  })\n \n   describe('@setPristine', () => {\n     it('should call emitter validation:pristine', sinon.test(function () {\n-      const stub = this.stub(emitter, 'emit');\n+      const stub = this.stub(emitter, 'emit')\n \n-      Validation.prototype.setPristine();\n+      Validation.prototype.setPristine()\n \n-      expect(stub.calledWith('validation:pristine')).to.be.true;\n-    }));\n-  });\n+      expect(stub.calledWith('validation:pristine')).to.be.true\n+    }))\n+  })\n \n   describe('validate', () => {\n     it('should return false if the field has no validations', () => {\n-      let field = $('<input />')[0];\n+      let field = $('<input />')[0]\n \n-      expect(Validation.prototype.validate(field)).to.be.falsy;\n-    });\n+      expect(Validation.prototype.validate(field)).to.be.falsy\n+    })\n \n     it('should return false if the field has validations, but does not pass on them', () => {\n-      let field = $('<input data-validate=\"required\" />')[0];\n+      let field = $('<input data-validate=\"required\" />')[0]\n \n-      expect(Validation.prototype.validate(field)).to.be.falsy;\n-    });\n+      expect(Validation.prototype.validate(field)).to.be.falsy\n+    })\n \n     it('should return true if the field has one validation, and pass on it', () => {\n-      let field = $('<input data-validate=\"required\" value=\"foo\"/>')[0];\n+      let field = $('<input data-validate=\"required\" value=\"foo\"/>')[0]\n \n-      expect(Validation.prototype.validate(field)).to.be.ok;\n-    });\n+      expect(Validation.prototype.validate(field)).to.be.ok\n+    })\n \n     it('should trigger an emitter event validation:error with validation errors', sinon.test(function() {\n-      let spy   =  this.spy(emitter, 'emit');\n-      let field = $('<input data-validate=\"required minlength\" data-minlength=\"5\"/>')[0];\n+      let spy   =  this.spy(emitter, 'emit')\n+      let field = $('<input data-validate=\"required minlength\" data-minlength=\"5\"/>')[0]\n \n-      Validation.prototype.validate(field);\n+      Validation.prototype.validate(field)\n \n-      expect(spy.calledWith('validation:error', field, ['required', 'minlength'])).to.be.true;\n-    }));\n+      expect(spy.calledWith('validation:error', field, ['required', 'minlength'])).to.be.true\n+    }))\n \n     it('should trigger an emitter event validation:success with no validation errors', sinon.test(function() {\n-      let spy   =  this.spy(emitter, 'emit');\n-      let field = $('<input data-validate=\"required\" value=\"foo\"/>')[0];\n+      let spy   =  this.spy(emitter, 'emit')","path":"test/components/validation.spec.js","position":123,"original_position":123,"commit_id":"23acaa921babf565e72ab7d35311ed04fc888a27","original_commit_id":"23acaa921babf565e72ab7d35311ed04fc888a27","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Multiple spaces found before '='           no-multi-spaces<br>Multiple spaces found before 'this'        no-multi-spaces","created_at":"2016-08-11T14:15:35Z","updated_at":"2016-08-11T14:15:35Z","html_url":"https://github.com/leroy-merlin-br/garden/pull/154#discussion_r74429754","pull_request_url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154","_links":{"self":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/comments/74429754"},"html":{"href":"https://github.com/leroy-merlin-br/garden/pull/154#discussion_r74429754"},"pull_request":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154"}}},"pull_request":{"url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154","id":80965024,"html_url":"https://github.com/leroy-merlin-br/garden/pull/154","diff_url":"https://github.com/leroy-merlin-br/garden/pull/154.diff","patch_url":"https://github.com/leroy-merlin-br/garden/pull/154.patch","issue_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues/154","number":154,"state":"open","locked":false,"title":"refactor(scripts): create alias on webpack for scripts and update paths","user":{"login":"rands0n","id":4191734,"avatar_url":"https://avatars.githubusercontent.com/u/4191734?v=3","gravatar_id":"","url":"https://api.github.com/users/rands0n","html_url":"https://github.com/rands0n","followers_url":"https://api.github.com/users/rands0n/followers","following_url":"https://api.github.com/users/rands0n/following{/other_user}","gists_url":"https://api.github.com/users/rands0n/gists{/gist_id}","starred_url":"https://api.github.com/users/rands0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rands0n/subscriptions","organizations_url":"https://api.github.com/users/rands0n/orgs","repos_url":"https://api.github.com/users/rands0n/repos","events_url":"https://api.github.com/users/rands0n/events{/privacy}","received_events_url":"https://api.github.com/users/rands0n/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-08-11T14:15:20Z","updated_at":"2016-08-11T14:15:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5634afd77b74bc92d74e943baac654d2cf85f2b3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154/commits","review_comments_url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154/comments","review_comment_url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues/154/comments","statuses_url":"https://api.github.com/repos/leroy-merlin-br/garden/statuses/23acaa921babf565e72ab7d35311ed04fc888a27","head":{"label":"leroy-merlin-br:refactor/webpack","ref":"refactor/webpack","sha":"23acaa921babf565e72ab7d35311ed04fc888a27","user":{"login":"leroy-merlin-br","id":4422202,"avatar_url":"https://avatars.githubusercontent.com/u/4422202?v=3","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"repo":{"id":48196975,"name":"garden","full_name":"leroy-merlin-br/garden","owner":{"login":"leroy-merlin-br","id":4422202,"avatar_url":"https://avatars.githubusercontent.com/u/4422202?v=3","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leroy-merlin-br/garden","description":"A styleguide based on Leroy Merlin needs","fork":false,"url":"https://api.github.com/repos/leroy-merlin-br/garden","forks_url":"https://api.github.com/repos/leroy-merlin-br/garden/forks","keys_url":"https://api.github.com/repos/leroy-merlin-br/garden/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leroy-merlin-br/garden/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leroy-merlin-br/garden/teams","hooks_url":"https://api.github.com/repos/leroy-merlin-br/garden/hooks","issue_events_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues/events{/number}","events_url":"https://api.github.com/repos/leroy-merlin-br/garden/events","assignees_url":"https://api.github.com/repos/leroy-merlin-br/garden/assignees{/user}","branches_url":"https://api.github.com/repos/leroy-merlin-br/garden/branches{/branch}","tags_url":"https://api.github.com/repos/leroy-merlin-br/garden/tags","blobs_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/refs{/sha}","trees_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leroy-merlin-br/garden/statuses/{sha}","languages_url":"https://api.github.com/repos/leroy-merlin-br/garden/languages","stargazers_url":"https://api.github.com/repos/leroy-merlin-br/garden/stargazers","contributors_url":"https://api.github.com/repos/leroy-merlin-br/garden/contributors","subscribers_url":"https://api.github.com/repos/leroy-merlin-br/garden/subscribers","subscription_url":"https://api.github.com/repos/leroy-merlin-br/garden/subscription","commits_url":"https://api.github.com/repos/leroy-merlin-br/garden/commits{/sha}","git_commits_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/commits{/sha}","comments_url":"https://api.github.com/repos/leroy-merlin-br/garden/comments{/number}","issue_comment_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues/comments{/number}","contents_url":"https://api.github.com/repos/leroy-merlin-br/garden/contents/{+path}","compare_url":"https://api.github.com/repos/leroy-merlin-br/garden/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leroy-merlin-br/garden/merges","archive_url":"https://api.github.com/repos/leroy-merlin-br/garden/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leroy-merlin-br/garden/downloads","issues_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues{/number}","pulls_url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls{/number}","milestones_url":"https://api.github.com/repos/leroy-merlin-br/garden/milestones{/number}","notifications_url":"https://api.github.com/repos/leroy-merlin-br/garden/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leroy-merlin-br/garden/labels{/name}","releases_url":"https://api.github.com/repos/leroy-merlin-br/garden/releases{/id}","deployments_url":"https://api.github.com/repos/leroy-merlin-br/garden/deployments","created_at":"2015-12-17T20:36:16Z","updated_at":"2016-07-28T17:43:04Z","pushed_at":"2016-08-11T14:15:20Z","git_url":"git://github.com/leroy-merlin-br/garden.git","ssh_url":"git@github.com:leroy-merlin-br/garden.git","clone_url":"https://github.com/leroy-merlin-br/garden.git","svn_url":"https://github.com/leroy-merlin-br/garden","homepage":"http://styleguide.leroymerlin.com.br","size":1343,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":18,"default_branch":"master"}},"base":{"label":"leroy-merlin-br:master","ref":"master","sha":"c2ebfb4de6930f11f0ad0ef7efc238c930035f18","user":{"login":"leroy-merlin-br","id":4422202,"avatar_url":"https://avatars.githubusercontent.com/u/4422202?v=3","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"repo":{"id":48196975,"name":"garden","full_name":"leroy-merlin-br/garden","owner":{"login":"leroy-merlin-br","id":4422202,"avatar_url":"https://avatars.githubusercontent.com/u/4422202?v=3","gravatar_id":"","url":"https://api.github.com/users/leroy-merlin-br","html_url":"https://github.com/leroy-merlin-br","followers_url":"https://api.github.com/users/leroy-merlin-br/followers","following_url":"https://api.github.com/users/leroy-merlin-br/following{/other_user}","gists_url":"https://api.github.com/users/leroy-merlin-br/gists{/gist_id}","starred_url":"https://api.github.com/users/leroy-merlin-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leroy-merlin-br/subscriptions","organizations_url":"https://api.github.com/users/leroy-merlin-br/orgs","repos_url":"https://api.github.com/users/leroy-merlin-br/repos","events_url":"https://api.github.com/users/leroy-merlin-br/events{/privacy}","received_events_url":"https://api.github.com/users/leroy-merlin-br/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leroy-merlin-br/garden","description":"A styleguide based on Leroy Merlin needs","fork":false,"url":"https://api.github.com/repos/leroy-merlin-br/garden","forks_url":"https://api.github.com/repos/leroy-merlin-br/garden/forks","keys_url":"https://api.github.com/repos/leroy-merlin-br/garden/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leroy-merlin-br/garden/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leroy-merlin-br/garden/teams","hooks_url":"https://api.github.com/repos/leroy-merlin-br/garden/hooks","issue_events_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues/events{/number}","events_url":"https://api.github.com/repos/leroy-merlin-br/garden/events","assignees_url":"https://api.github.com/repos/leroy-merlin-br/garden/assignees{/user}","branches_url":"https://api.github.com/repos/leroy-merlin-br/garden/branches{/branch}","tags_url":"https://api.github.com/repos/leroy-merlin-br/garden/tags","blobs_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/refs{/sha}","trees_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leroy-merlin-br/garden/statuses/{sha}","languages_url":"https://api.github.com/repos/leroy-merlin-br/garden/languages","stargazers_url":"https://api.github.com/repos/leroy-merlin-br/garden/stargazers","contributors_url":"https://api.github.com/repos/leroy-merlin-br/garden/contributors","subscribers_url":"https://api.github.com/repos/leroy-merlin-br/garden/subscribers","subscription_url":"https://api.github.com/repos/leroy-merlin-br/garden/subscription","commits_url":"https://api.github.com/repos/leroy-merlin-br/garden/commits{/sha}","git_commits_url":"https://api.github.com/repos/leroy-merlin-br/garden/git/commits{/sha}","comments_url":"https://api.github.com/repos/leroy-merlin-br/garden/comments{/number}","issue_comment_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues/comments{/number}","contents_url":"https://api.github.com/repos/leroy-merlin-br/garden/contents/{+path}","compare_url":"https://api.github.com/repos/leroy-merlin-br/garden/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leroy-merlin-br/garden/merges","archive_url":"https://api.github.com/repos/leroy-merlin-br/garden/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leroy-merlin-br/garden/downloads","issues_url":"https://api.github.com/repos/leroy-merlin-br/garden/issues{/number}","pulls_url":"https://api.github.com/repos/leroy-merlin-br/garden/pulls{/number}","milestones_url":"https://api.github.com/repos/leroy-merlin-br/garden/milestones{/number}","notifications_url":"https://api.github.com/repos/leroy-merlin-br/garden/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leroy-merlin-br/garden/labels{/name}","releases_url":"https://api.github.com/repos/leroy-merlin-br/garden/releases{/id}","deployments_url":"https://api.github.com/repos/leroy-merlin-br/garden/deployments","created_at":"2015-12-17T20:36:16Z","updated_at":"2016-07-28T17:43:04Z","pushed_at":"2016-08-11T14:15:20Z","git_url":"git://github.com/leroy-merlin-br/garden.git","ssh_url":"git@github.com:leroy-merlin-br/garden.git","clone_url":"https://github.com/leroy-merlin-br/garden.git","svn_url":"https://github.com/leroy-merlin-br/garden","homepage":"http://styleguide.leroymerlin.com.br","size":1343,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154"},"html":{"href":"https://github.com/leroy-merlin-br/garden/pull/154"},"issue":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/issues/154"},"comments":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/leroy-merlin-br/garden/statuses/23acaa921babf565e72ab7d35311ed04fc888a27"}}}}
{"actor":{"display_login":"houndci-bot"}}