GitHub PullRequestReviewCommentEvent at 2014-04-23 04:34:12
Repository: component-hint
Actor: AlmirKadric
Payload: {"comment":{"url":"https://api.github.com/repos/Wizcorp/component-hint/pulls/comments/11886593","id":11886593,"diff_hunk":"@@ -0,0 +1,46 @@\n+var fs = require('fs');\n+var path = require('path');\n+var async = require('async');\n+\n+\n+/**\n+ * This test will run on the fly and checks each file type within the component.json file for it's\n+ * existance.\n+ * \n+ * @param {Object} componentData\n+ * @param {Object} componentHint\n+ * @param {Function} cb\n+ * @returns {undefined}\n+ */\n+exports.onTheFlyTest = function (componentData, componentHint, cb) {\n+\tvar componentPath = componentData.path;\n+\tvar eventChannel = componentData.channel;\n+\n+\tvar fileList = {\n+\t\tscripts: componentData.json.scripts || ['./index.js'],\n+\t\tstyles: componentData.json.styles || [],\n+\t\tjson: componentData.json.json || [],\n+\t\timages: componentData.json.images || [],\n+\t\tfonts: componentData.json.fonts || [],\n+\t\tfiles: componentData.json.files || [],\n+\t\ttemplates: componentData.json.templates || []\n+\t};\n+\n+\tasync.each(Object.keys(fileList), function (fileType, fileTypeCb) {\n+\t\tvar files = fileList[fileType];\n+\n+\t\tasync.each(files, function (fileName, callback) {\n+\t\t\tvar fullFileName = path.resolve(componentPath, fileName);\n+\n+\t\t\tfs.stat(fullFileName, function (error, stats) {","path":"lib/tests/101_checkFilesExist.js","position":35,"original_position":35,"commit_id":"3039c369468156dbd694c4ba89a2d7bdb027427c","original_commit_id":"e05343539d87aeb1bd653f9c869564046a5628b6","user":{"login":"AlmirKadric","id":1650294,"avatar_url":"https://avatars.githubusercontent.com/u/1650294?","gravatar_id":"8229cbe5dac6687ee8ac1f0d9d04bf82","url":"https://api.github.com/users/AlmirKadric","html_url":"https://github.com/AlmirKadric","followers_url":"https://api.github.com/users/AlmirKadric/followers","following_url":"https://api.github.com/users/AlmirKadric/following{/other_user}","gists_url":"https://api.github.com/users/AlmirKadric/gists{/gist_id}","starred_url":"https://api.github.com/users/AlmirKadric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlmirKadric/subscriptions","organizations_url":"https://api.github.com/users/AlmirKadric/orgs","repos_url":"https://api.github.com/users/AlmirKadric/repos","events_url":"https://api.github.com/users/AlmirKadric/events{/privacy}","received_events_url":"https://api.github.com/users/AlmirKadric/received_events","type":"User","site_admin":false},"body":"bad copy paste, should be fs.exists\r\nseems i copied a different section which also tested for directory","created_at":"2014-04-23T04:34:12Z","updated_at":"2014-04-23T04:34:12Z","html_url":"https://github.com/Wizcorp/component-hint/pull/33#discussion_r11886593","pull_request_url":"https://api.github.com/repos/Wizcorp/component-hint/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/Wizcorp/component-hint/pulls/comments/11886593"},"html":{"href":"https://github.com/Wizcorp/component-hint/pull/33#discussion_r11886593"},"pull_request":{"href":"https://api.github.com/repos/Wizcorp/component-hint/pulls/33"}}}}