{"action":"created","comment":{"url":"https://api.github.com/repos/filerjs/filer/pulls/comments/223817691","pull_request_review_id":163038338,"id":223817691,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzgxNzY5MQ==","diff_hunk":"@@ -0,0 +1,34 @@\n+var util = require('../lib/test-utils.js');\n+var expect = require('chai').expect;\n+const fs = require('fs');\n+const {COPYFILE_EXCL} = fs.constants;\n+\n+describe('fs.copyFile', function() {\n+  beforeEach(util.setup);\n+  afterEach(util.cleanup);\n+\n+  it('should be a function', function() {\n+    var fs = util.fs();\n+    expect(fs.copyFile).to.be.a('function');\n+  });\n+\n+  it('shoud return an error if the source file does not exist', function(done) {\n+    var fs = util.fs();\n+\n+    fs.copyFile('source.txt', 'destination.txt', function(error){\n+      expect(error).to.exist;\n+      expect(error.code).to.equal('ENOENT');\n+      done();\n+    });\n+  });\n+\n+  it('adding the flag as an argument, should return an error if the destination file already exist', function (done){","path":"tests/spec/fs.copyFile.spec.js","position":25,"original_position":25,"commit_id":"4e661dd76a8413f870d60f5a6c424e7cf4f3bc5c","original_commit_id":"4e661dd76a8413f870d60f5a6c424e7cf4f3bc5c","user":{"login":"humphd","id":427398,"node_id":"MDQ6VXNlcjQyNzM5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/427398?v=4","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"body":"exists (add an 's')","created_at":"2018-10-09T18:40:06Z","updated_at":"2018-10-09T18:43:03Z","html_url":"https://github.com/filerjs/filer/pull/488#discussion_r223817691","pull_request_url":"https://api.github.com/repos/filerjs/filer/pulls/488","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/filerjs/filer/pulls/comments/223817691"},"html":{"href":"https://github.com/filerjs/filer/pull/488#discussion_r223817691"},"pull_request":{"href":"https://api.github.com/repos/filerjs/filer/pulls/488"}}},"pull_request":{"url":"https://api.github.com/repos/filerjs/filer/pulls/488","id":217755644,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NzU1NjQ0","html_url":"https://github.com/filerjs/filer/pull/488","diff_url":"https://github.com/filerjs/filer/pull/488.diff","patch_url":"https://github.com/filerjs/filer/pull/488.patch","issue_url":"https://api.github.com/repos/filerjs/filer/issues/488","number":488,"state":"open","locked":false,"title":"Issue #459 adding a new doc for fs.copyFile tests","user":{"login":"YuechengWu","id":25010571,"node_id":"MDQ6VXNlcjI1MDEwNTcx","avatar_url":"https://avatars1.githubusercontent.com/u/25010571?v=4","gravatar_id":"","url":"https://api.github.com/users/YuechengWu","html_url":"https://github.com/YuechengWu","followers_url":"https://api.github.com/users/YuechengWu/followers","following_url":"https://api.github.com/users/YuechengWu/following{/other_user}","gists_url":"https://api.github.com/users/YuechengWu/gists{/gist_id}","starred_url":"https://api.github.com/users/YuechengWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuechengWu/subscriptions","organizations_url":"https://api.github.com/users/YuechengWu/orgs","repos_url":"https://api.github.com/users/YuechengWu/repos","events_url":"https://api.github.com/users/YuechengWu/events{/privacy}","received_events_url":"https://api.github.com/users/YuechengWu/received_events","type":"User","site_admin":false},"body":"added some tests for fs.copyFile() including flag tests.","created_at":"2018-09-24T19:01:16Z","updated_at":"2018-10-09T18:43:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ec068c2e056fdff0ae379e201378e2e8d4da1d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/filerjs/filer/pulls/488/commits","review_comments_url":"https://api.github.com/repos/filerjs/filer/pulls/488/comments","review_comment_url":"https://api.github.com/repos/filerjs/filer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/filerjs/filer/issues/488/comments","statuses_url":"https://api.github.com/repos/filerjs/filer/statuses/4e661dd76a8413f870d60f5a6c424e7cf4f3bc5c","head":{"label":"YuechengWu:issue-459","ref":"issue-459","sha":"4e661dd76a8413f870d60f5a6c424e7cf4f3bc5c","user":{"login":"YuechengWu","id":25010571,"node_id":"MDQ6VXNlcjI1MDEwNTcx","avatar_url":"https://avatars1.githubusercontent.com/u/25010571?v=4","gravatar_id":"","url":"https://api.github.com/users/YuechengWu","html_url":"https://github.com/YuechengWu","followers_url":"https://api.github.com/users/YuechengWu/followers","following_url":"https://api.github.com/users/YuechengWu/following{/other_user}","gists_url":"https://api.github.com/users/YuechengWu/gists{/gist_id}","starred_url":"https://api.github.com/users/YuechengWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuechengWu/subscriptions","organizations_url":"https://api.github.com/users/YuechengWu/orgs","repos_url":"https://api.github.com/users/YuechengWu/repos","events_url":"https://api.github.com/users/YuechengWu/events{/privacy}","received_events_url":"https://api.github.com/users/YuechengWu/received_events","type":"User","site_admin":false},"repo":{"id":149170877,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNzA4Nzc=","name":"filer","full_name":"YuechengWu/filer","private":false,"owner":{"login":"YuechengWu","id":25010571,"node_id":"MDQ6VXNlcjI1MDEwNTcx","avatar_url":"https://avatars1.githubusercontent.com/u/25010571?v=4","gravatar_id":"","url":"https://api.github.com/users/YuechengWu","html_url":"https://github.com/YuechengWu","followers_url":"https://api.github.com/users/YuechengWu/followers","following_url":"https://api.github.com/users/YuechengWu/following{/other_user}","gists_url":"https://api.github.com/users/YuechengWu/gists{/gist_id}","starred_url":"https://api.github.com/users/YuechengWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuechengWu/subscriptions","organizations_url":"https://api.github.com/users/YuechengWu/orgs","repos_url":"https://api.github.com/users/YuechengWu/repos","events_url":"https://api.github.com/users/YuechengWu/events{/privacy}","received_events_url":"https://api.github.com/users/YuechengWu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/YuechengWu/filer","description":"Node-like file system for browsers","fork":true,"url":"https://api.github.com/repos/YuechengWu/filer","forks_url":"https://api.github.com/repos/YuechengWu/filer/forks","keys_url":"https://api.github.com/repos/YuechengWu/filer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuechengWu/filer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuechengWu/filer/teams","hooks_url":"https://api.github.com/repos/YuechengWu/filer/hooks","issue_events_url":"https://api.github.com/repos/YuechengWu/filer/issues/events{/number}","events_url":"https://api.github.com/repos/YuechengWu/filer/events","assignees_url":"https://api.github.com/repos/YuechengWu/filer/assignees{/user}","branches_url":"https://api.github.com/repos/YuechengWu/filer/branches{/branch}","tags_url":"https://api.github.com/repos/YuechengWu/filer/tags","blobs_url":"https://api.github.com/repos/YuechengWu/filer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuechengWu/filer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuechengWu/filer/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuechengWu/filer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuechengWu/filer/statuses/{sha}","languages_url":"https://api.github.com/repos/YuechengWu/filer/languages","stargazers_url":"https://api.github.com/repos/YuechengWu/filer/stargazers","contributors_url":"https://api.github.com/repos/YuechengWu/filer/contributors","subscribers_url":"https://api.github.com/repos/YuechengWu/filer/subscribers","subscription_url":"https://api.github.com/repos/YuechengWu/filer/subscription","commits_url":"https://api.github.com/repos/YuechengWu/filer/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuechengWu/filer/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuechengWu/filer/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuechengWu/filer/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuechengWu/filer/contents/{+path}","compare_url":"https://api.github.com/repos/YuechengWu/filer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuechengWu/filer/merges","archive_url":"https://api.github.com/repos/YuechengWu/filer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuechengWu/filer/downloads","issues_url":"https://api.github.com/repos/YuechengWu/filer/issues{/number}","pulls_url":"https://api.github.com/repos/YuechengWu/filer/pulls{/number}","milestones_url":"https://api.github.com/repos/YuechengWu/filer/milestones{/number}","notifications_url":"https://api.github.com/repos/YuechengWu/filer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuechengWu/filer/labels{/name}","releases_url":"https://api.github.com/repos/YuechengWu/filer/releases{/id}","deployments_url":"https://api.github.com/repos/YuechengWu/filer/deployments","created_at":"2018-09-17T18:35:53Z","updated_at":"2018-09-23T16:32:40Z","pushed_at":"2018-09-28T18:33:20Z","git_url":"git://github.com/YuechengWu/filer.git","ssh_url":"git@github.com:YuechengWu/filer.git","clone_url":"https://github.com/YuechengWu/filer.git","svn_url":"https://github.com/YuechengWu/filer","homepage":"https://filerjs.github.io/filer","size":6780,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"filerjs:master","ref":"master","sha":"e3a1187ef94d5fc627768cee13457417e7ea0035","user":{"login":"filerjs","id":8823087,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4MjMwODc=","avatar_url":"https://avatars2.githubusercontent.com/u/8823087?v=4","gravatar_id":"","url":"https://api.github.com/users/filerjs","html_url":"https://github.com/filerjs","followers_url":"https://api.github.com/users/filerjs/followers","following_url":"https://api.github.com/users/filerjs/following{/other_user}","gists_url":"https://api.github.com/users/filerjs/gists{/gist_id}","starred_url":"https://api.github.com/users/filerjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filerjs/subscriptions","organizations_url":"https://api.github.com/users/filerjs/orgs","repos_url":"https://api.github.com/users/filerjs/repos","events_url":"https://api.github.com/users/filerjs/events{/privacy}","received_events_url":"https://api.github.com/users/filerjs/received_events","type":"Organization","site_admin":false},"repo":{"id":6229442,"node_id":"MDEwOlJlcG9zaXRvcnk2MjI5NDQy","name":"filer","full_name":"filerjs/filer","private":false,"owner":{"login":"filerjs","id":8823087,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4MjMwODc=","avatar_url":"https://avatars2.githubusercontent.com/u/8823087?v=4","gravatar_id":"","url":"https://api.github.com/users/filerjs","html_url":"https://github.com/filerjs","followers_url":"https://api.github.com/users/filerjs/followers","following_url":"https://api.github.com/users/filerjs/following{/other_user}","gists_url":"https://api.github.com/users/filerjs/gists{/gist_id}","starred_url":"https://api.github.com/users/filerjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filerjs/subscriptions","organizations_url":"https://api.github.com/users/filerjs/orgs","repos_url":"https://api.github.com/users/filerjs/repos","events_url":"https://api.github.com/users/filerjs/events{/privacy}","received_events_url":"https://api.github.com/users/filerjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/filerjs/filer","description":"Node-like file system for browsers","fork":false,"url":"https://api.github.com/repos/filerjs/filer","forks_url":"https://api.github.com/repos/filerjs/filer/forks","keys_url":"https://api.github.com/repos/filerjs/filer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/filerjs/filer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/filerjs/filer/teams","hooks_url":"https://api.github.com/repos/filerjs/filer/hooks","issue_events_url":"https://api.github.com/repos/filerjs/filer/issues/events{/number}","events_url":"https://api.github.com/repos/filerjs/filer/events","assignees_url":"https://api.github.com/repos/filerjs/filer/assignees{/user}","branches_url":"https://api.github.com/repos/filerjs/filer/branches{/branch}","tags_url":"https://api.github.com/repos/filerjs/filer/tags","blobs_url":"https://api.github.com/repos/filerjs/filer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/filerjs/filer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/filerjs/filer/git/refs{/sha}","trees_url":"https://api.github.com/repos/filerjs/filer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/filerjs/filer/statuses/{sha}","languages_url":"https://api.github.com/repos/filerjs/filer/languages","stargazers_url":"https://api.github.com/repos/filerjs/filer/stargazers","contributors_url":"https://api.github.com/repos/filerjs/filer/contributors","subscribers_url":"https://api.github.com/repos/filerjs/filer/subscribers","subscription_url":"https://api.github.com/repos/filerjs/filer/subscription","commits_url":"https://api.github.com/repos/filerjs/filer/commits{/sha}","git_commits_url":"https://api.github.com/repos/filerjs/filer/git/commits{/sha}","comments_url":"https://api.github.com/repos/filerjs/filer/comments{/number}","issue_comment_url":"https://api.github.com/repos/filerjs/filer/issues/comments{/number}","contents_url":"https://api.github.com/repos/filerjs/filer/contents/{+path}","compare_url":"https://api.github.com/repos/filerjs/filer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/filerjs/filer/merges","archive_url":"https://api.github.com/repos/filerjs/filer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/filerjs/filer/downloads","issues_url":"https://api.github.com/repos/filerjs/filer/issues{/number}","pulls_url":"https://api.github.com/repos/filerjs/filer/pulls{/number}","milestones_url":"https://api.github.com/repos/filerjs/filer/milestones{/number}","notifications_url":"https://api.github.com/repos/filerjs/filer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/filerjs/filer/labels{/name}","releases_url":"https://api.github.com/repos/filerjs/filer/releases{/id}","deployments_url":"https://api.github.com/repos/filerjs/filer/deployments","created_at":"2012-10-15T15:34:22Z","updated_at":"2018-10-09T18:31:23Z","pushed_at":"2018-10-09T18:41:19Z","git_url":"git://github.com/filerjs/filer.git","ssh_url":"git@github.com:filerjs/filer.git","clone_url":"https://github.com/filerjs/filer.git","svn_url":"https://github.com/filerjs/filer","homepage":"https://filerjs.github.io/filer","size":6806,"stargazers_count":266,"watchers_count":266,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":117,"mirror_url":null,"archived":false,"open_issues_count":207,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":117,"open_issues":207,"watchers":266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/filerjs/filer/pulls/488"},"html":{"href":"https://github.com/filerjs/filer/pull/488"},"issue":{"href":"https://api.github.com/repos/filerjs/filer/issues/488"},"comments":{"href":"https://api.github.com/repos/filerjs/filer/issues/488/comments"},"review_comments":{"href":"https://api.github.com/repos/filerjs/filer/pulls/488/comments"},"review_comment":{"href":"https://api.github.com/repos/filerjs/filer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/filerjs/filer/pulls/488/commits"},"statuses":{"href":"https://api.github.com/repos/filerjs/filer/statuses/4e661dd76a8413f870d60f5a6c424e7cf4f3bc5c"}},"author_association":"NONE"}}
{"actor":{"display_login":"humphd"}}