{"action":"created","comment":{"url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/comments/171990883","pull_request_review_id":100944726,"id":171990883,"diff_hunk":"@@ -0,0 +1,98 @@\n+const { createOrder } = require('../../../Services/user/Api/Controllers/order');\n+const OrderController = require('../../../Services/user/Api/Controllers/order');\n+const chai = require('chai');\n+const sinon = require('sinon');\n+const sandBox = sinon.createSandbox();\n+const chaiAsPromised = require(\"chai-as-promised\");\n+chai.use(chaiAsPromised);\n+const expect = chai.expect;\n+const assert = chai.assert;\n+const { Order, Product } = require('../../../Services/user/database/models/');\n+const mocks = require('../../Mocks/controllers/order.controller');\n+chai.should();\n+\n+describe('Test to OrderController', async () => {\n+\n+  beforeEach(() => {\n+    sandBox.restore();\n+  });\n+\n+","path":"Test/unit/Controllers/order.test.js","position":20,"original_position":20,"commit_id":"bc63d1c0c4d69ecc81a05cc346382188a28d345f","original_commit_id":"bc63d1c0c4d69ecc81a05cc346382188a28d345f","user":{"login":"Subastkar","id":987548,"avatar_url":"https://avatars0.githubusercontent.com/u/987548?v=4","gravatar_id":"","url":"https://api.github.com/users/Subastkar","html_url":"https://github.com/Subastkar","followers_url":"https://api.github.com/users/Subastkar/followers","following_url":"https://api.github.com/users/Subastkar/following{/other_user}","gists_url":"https://api.github.com/users/Subastkar/gists{/gist_id}","starred_url":"https://api.github.com/users/Subastkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Subastkar/subscriptions","organizations_url":"https://api.github.com/users/Subastkar/orgs","repos_url":"https://api.github.com/users/Subastkar/repos","events_url":"https://api.github.com/users/Subastkar/events{/privacy}","received_events_url":"https://api.github.com/users/Subastkar/received_events","type":"User","site_admin":false},"body":"Extrs line","created_at":"2018-03-02T23:45:08Z","updated_at":"2018-03-02T23:51:04Z","html_url":"https://github.com/andresgarcia29/BackendTestV2/pull/1#discussion_r171990883","pull_request_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/comments/171990883"},"html":{"href":"https://github.com/andresgarcia29/BackendTestV2/pull/1#discussion_r171990883"},"pull_request":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1","id":170365112,"html_url":"https://github.com/andresgarcia29/BackendTestV2/pull/1","diff_url":"https://github.com/andresgarcia29/BackendTestV2/pull/1.diff","patch_url":"https://github.com/andresgarcia29/BackendTestV2/pull/1.patch","issue_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/1","number":1,"state":"closed","locked":false,"title":"Develop","user":{"login":"andresgarcia29","id":26034205,"avatar_url":"https://avatars2.githubusercontent.com/u/26034205?v=4","gravatar_id":"","url":"https://api.github.com/users/andresgarcia29","html_url":"https://github.com/andresgarcia29","followers_url":"https://api.github.com/users/andresgarcia29/followers","following_url":"https://api.github.com/users/andresgarcia29/following{/other_user}","gists_url":"https://api.github.com/users/andresgarcia29/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgarcia29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgarcia29/subscriptions","organizations_url":"https://api.github.com/users/andresgarcia29/orgs","repos_url":"https://api.github.com/users/andresgarcia29/repos","events_url":"https://api.github.com/users/andresgarcia29/events{/privacy}","received_events_url":"https://api.github.com/users/andresgarcia29/received_events","type":"User","site_admin":false},"body":"- I had some troubles with unit test with sinon!","created_at":"2018-02-21T02:54:59Z","updated_at":"2018-03-02T23:51:04Z","closed_at":"2018-03-02T22:44:57Z","merged_at":"2018-03-02T22:44:57Z","merge_commit_sha":"03d441c2e0a3aebb8f1f3dab428805a08f2d46e6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/1/comments","statuses_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/statuses/bc63d1c0c4d69ecc81a05cc346382188a28d345f","head":{"label":"andresgarcia29:develop","ref":"develop","sha":"bc63d1c0c4d69ecc81a05cc346382188a28d345f","user":{"login":"andresgarcia29","id":26034205,"avatar_url":"https://avatars2.githubusercontent.com/u/26034205?v=4","gravatar_id":"","url":"https://api.github.com/users/andresgarcia29","html_url":"https://github.com/andresgarcia29","followers_url":"https://api.github.com/users/andresgarcia29/followers","following_url":"https://api.github.com/users/andresgarcia29/following{/other_user}","gists_url":"https://api.github.com/users/andresgarcia29/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgarcia29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgarcia29/subscriptions","organizations_url":"https://api.github.com/users/andresgarcia29/orgs","repos_url":"https://api.github.com/users/andresgarcia29/repos","events_url":"https://api.github.com/users/andresgarcia29/events{/privacy}","received_events_url":"https://api.github.com/users/andresgarcia29/received_events","type":"User","site_admin":false},"repo":{"id":121310749,"name":"BackendTestV2","full_name":"andresgarcia29/BackendTestV2","owner":{"login":"andresgarcia29","id":26034205,"avatar_url":"https://avatars2.githubusercontent.com/u/26034205?v=4","gravatar_id":"","url":"https://api.github.com/users/andresgarcia29","html_url":"https://github.com/andresgarcia29","followers_url":"https://api.github.com/users/andresgarcia29/followers","following_url":"https://api.github.com/users/andresgarcia29/following{/other_user}","gists_url":"https://api.github.com/users/andresgarcia29/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgarcia29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgarcia29/subscriptions","organizations_url":"https://api.github.com/users/andresgarcia29/orgs","repos_url":"https://api.github.com/users/andresgarcia29/repos","events_url":"https://api.github.com/users/andresgarcia29/events{/privacy}","received_events_url":"https://api.github.com/users/andresgarcia29/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andresgarcia29/BackendTestV2","description":"This is a repository.","fork":false,"url":"https://api.github.com/repos/andresgarcia29/BackendTestV2","forks_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/forks","keys_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/teams","hooks_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/hooks","issue_events_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/events{/number}","events_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/events","assignees_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/assignees{/user}","branches_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/branches{/branch}","tags_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/tags","blobs_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/refs{/sha}","trees_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/statuses/{sha}","languages_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/languages","stargazers_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/stargazers","contributors_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/contributors","subscribers_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/subscribers","subscription_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/subscription","commits_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/commits{/sha}","git_commits_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/commits{/sha}","comments_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/comments{/number}","issue_comment_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/comments{/number}","contents_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/contents/{+path}","compare_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/merges","archive_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/downloads","issues_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues{/number}","pulls_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls{/number}","milestones_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/milestones{/number}","notifications_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/labels{/name}","releases_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/releases{/id}","deployments_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/deployments","created_at":"2018-02-12T22:31:13Z","updated_at":"2018-02-12T22:43:38Z","pushed_at":"2018-03-02T23:26:06Z","git_url":"git://github.com/andresgarcia29/BackendTestV2.git","ssh_url":"git@github.com:andresgarcia29/BackendTestV2.git","clone_url":"https://github.com/andresgarcia29/BackendTestV2.git","svn_url":"https://github.com/andresgarcia29/BackendTestV2","homepage":null,"size":184,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andresgarcia29:master","ref":"master","sha":"47aeabcd64bca869f96657d112bc56fb3cecdf64","user":{"login":"andresgarcia29","id":26034205,"avatar_url":"https://avatars2.githubusercontent.com/u/26034205?v=4","gravatar_id":"","url":"https://api.github.com/users/andresgarcia29","html_url":"https://github.com/andresgarcia29","followers_url":"https://api.github.com/users/andresgarcia29/followers","following_url":"https://api.github.com/users/andresgarcia29/following{/other_user}","gists_url":"https://api.github.com/users/andresgarcia29/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgarcia29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgarcia29/subscriptions","organizations_url":"https://api.github.com/users/andresgarcia29/orgs","repos_url":"https://api.github.com/users/andresgarcia29/repos","events_url":"https://api.github.com/users/andresgarcia29/events{/privacy}","received_events_url":"https://api.github.com/users/andresgarcia29/received_events","type":"User","site_admin":false},"repo":{"id":121310749,"name":"BackendTestV2","full_name":"andresgarcia29/BackendTestV2","owner":{"login":"andresgarcia29","id":26034205,"avatar_url":"https://avatars2.githubusercontent.com/u/26034205?v=4","gravatar_id":"","url":"https://api.github.com/users/andresgarcia29","html_url":"https://github.com/andresgarcia29","followers_url":"https://api.github.com/users/andresgarcia29/followers","following_url":"https://api.github.com/users/andresgarcia29/following{/other_user}","gists_url":"https://api.github.com/users/andresgarcia29/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgarcia29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgarcia29/subscriptions","organizations_url":"https://api.github.com/users/andresgarcia29/orgs","repos_url":"https://api.github.com/users/andresgarcia29/repos","events_url":"https://api.github.com/users/andresgarcia29/events{/privacy}","received_events_url":"https://api.github.com/users/andresgarcia29/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andresgarcia29/BackendTestV2","description":"This is a repository.","fork":false,"url":"https://api.github.com/repos/andresgarcia29/BackendTestV2","forks_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/forks","keys_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/teams","hooks_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/hooks","issue_events_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/events{/number}","events_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/events","assignees_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/assignees{/user}","branches_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/branches{/branch}","tags_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/tags","blobs_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/refs{/sha}","trees_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/statuses/{sha}","languages_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/languages","stargazers_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/stargazers","contributors_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/contributors","subscribers_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/subscribers","subscription_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/subscription","commits_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/commits{/sha}","git_commits_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/git/commits{/sha}","comments_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/comments{/number}","issue_comment_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/comments{/number}","contents_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/contents/{+path}","compare_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/merges","archive_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/downloads","issues_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues{/number}","pulls_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls{/number}","milestones_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/milestones{/number}","notifications_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/labels{/name}","releases_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/releases{/id}","deployments_url":"https://api.github.com/repos/andresgarcia29/BackendTestV2/deployments","created_at":"2018-02-12T22:31:13Z","updated_at":"2018-02-12T22:43:38Z","pushed_at":"2018-03-02T23:26:06Z","git_url":"git://github.com/andresgarcia29/BackendTestV2.git","ssh_url":"git@github.com:andresgarcia29/BackendTestV2.git","clone_url":"https://github.com/andresgarcia29/BackendTestV2.git","svn_url":"https://github.com/andresgarcia29/BackendTestV2","homepage":null,"size":184,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1"},"html":{"href":"https://github.com/andresgarcia29/BackendTestV2/pull/1"},"issue":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/1"},"comments":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andresgarcia29/BackendTestV2/statuses/bc63d1c0c4d69ecc81a05cc346382188a28d345f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Subastkar"}}