{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments/210497136","pull_request_review_id":146723119,"id":210497136,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDQ5NzEzNg==","diff_hunk":"@@ -0,0 +1,100 @@\n+require(\"should\");\n+var MovementInventory = require(\"../../data-util/inventory/movement-inventory-data-util\");\n+var helper = require(\"../../helper\");\n+var validate = require(\"bateeq-models\").validator.inventory.movementInventory;\n+\n+var MovementInventoryManager = require(\"../../../../src/managers/inventory/movement-inventory-manager\");\n+var MovementinventoryManager = null;\n+\n+//delete unitest data\n+// var DLModels = require('dl-models');\n+// var map = DLModels.map;\n+// var MachineType = DLModels.master.MachineType;\n+\n+\n+before('#00. connect db', function (done) {\n+    helper.getDb()\n+        .then(db => {\n+            movementInventoryManager = new MovementInventoryManager(db, {\n+                username: 'dev'\n+            });\n+            done();\n+        })\n+        .catch(e => {\n+            done(e);\n+        });\n+});\n+\n+var createdId;\n+it(\"#01. should success when create new data\", function (done) {\n+    MovementInventory.getNewData()\n+        .then((data) => movementInventoryManager.create(data))\n+        .then((id) => {\n+            id.should.be.Object();\n+            createdId = id;\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+\n+var createdData;\n+it(`#02. should success when get created data with id`, function (done) {\n+    movementInventoryManager.getSingleById(createdId)\n+        .then((data) => {\n+            data.should.instanceof(Object);\n+            validate(data);\n+            createdData = data;\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+\n+\n+var resultForExcelTest = {};\n+it(\"#03. should success when read data\", function (done) {\n+    movementInventoryManager.read({\n+        filter: {\n+            _id: createdId\n+        }\n+    })\n+        .then((documents) => {","path":"test/managers/inventory/movement-inventory/report.js","position":64,"original_position":64,"commit_id":"a64adca2acdb16f5ec41c76f81c344cbd84199dd","original_commit_id":"a64adca2acdb16f5ec41c76f81c344cbd84199dd","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2018-08-16T07:18:22Z","updated_at":"2018-08-16T07:18:24Z","html_url":"https://github.com/danliris/bateeq-module/pull/574#discussion_r210497136","pull_request_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/574","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments/210497136"},"html":{"href":"https://github.com/danliris/bateeq-module/pull/574#discussion_r210497136"},"pull_request":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/574"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/bateeq-module/pulls/574","id":207757808,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NzU3ODA4","html_url":"https://github.com/danliris/bateeq-module/pull/574","diff_url":"https://github.com/danliris/bateeq-module/pull/574.diff","patch_url":"https://github.com/danliris/bateeq-module/pull/574.patch","issue_url":"https://api.github.com/repos/danliris/bateeq-module/issues/574","number":574,"state":"open","locked":false,"title":"document-inventory, movement-inventory, summary-inventory","user":{"login":"andibateeq","id":28917159,"node_id":"MDQ6VXNlcjI4OTE3MTU5","avatar_url":"https://avatars0.githubusercontent.com/u/28917159?v=4","gravatar_id":"","url":"https://api.github.com/users/andibateeq","html_url":"https://github.com/andibateeq","followers_url":"https://api.github.com/users/andibateeq/followers","following_url":"https://api.github.com/users/andibateeq/following{/other_user}","gists_url":"https://api.github.com/users/andibateeq/gists{/gist_id}","starred_url":"https://api.github.com/users/andibateeq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andibateeq/subscriptions","organizations_url":"https://api.github.com/users/andibateeq/orgs","repos_url":"https://api.github.com/users/andibateeq/repos","events_url":"https://api.github.com/users/andibateeq/events{/privacy}","received_events_url":"https://api.github.com/users/andibateeq/received_events","type":"User","site_admin":false},"body":"document-inventory, movement-inventory, summary-inventory","created_at":"2018-08-11T04:50:39Z","updated_at":"2018-08-16T07:18:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d34f0ec992d053d71614698f01ec5a816b6ea5f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/574/commits","review_comments_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/574/comments","review_comment_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/bateeq-module/issues/574/comments","statuses_url":"https://api.github.com/repos/danliris/bateeq-module/statuses/a64adca2acdb16f5ec41c76f81c344cbd84199dd","head":{"label":"andibateeq:dev","ref":"dev","sha":"a64adca2acdb16f5ec41c76f81c344cbd84199dd","user":{"login":"andibateeq","id":28917159,"node_id":"MDQ6VXNlcjI4OTE3MTU5","avatar_url":"https://avatars0.githubusercontent.com/u/28917159?v=4","gravatar_id":"","url":"https://api.github.com/users/andibateeq","html_url":"https://github.com/andibateeq","followers_url":"https://api.github.com/users/andibateeq/followers","following_url":"https://api.github.com/users/andibateeq/following{/other_user}","gists_url":"https://api.github.com/users/andibateeq/gists{/gist_id}","starred_url":"https://api.github.com/users/andibateeq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andibateeq/subscriptions","organizations_url":"https://api.github.com/users/andibateeq/orgs","repos_url":"https://api.github.com/users/andibateeq/repos","events_url":"https://api.github.com/users/andibateeq/events{/privacy}","received_events_url":"https://api.github.com/users/andibateeq/received_events","type":"User","site_admin":false},"repo":{"id":92461657,"node_id":"MDEwOlJlcG9zaXRvcnk5MjQ2MTY1Nw==","name":"bateeq-module","full_name":"andibateeq/bateeq-module","owner":{"login":"andibateeq","id":28917159,"node_id":"MDQ6VXNlcjI4OTE3MTU5","avatar_url":"https://avatars0.githubusercontent.com/u/28917159?v=4","gravatar_id":"","url":"https://api.github.com/users/andibateeq","html_url":"https://github.com/andibateeq","followers_url":"https://api.github.com/users/andibateeq/followers","following_url":"https://api.github.com/users/andibateeq/following{/other_user}","gists_url":"https://api.github.com/users/andibateeq/gists{/gist_id}","starred_url":"https://api.github.com/users/andibateeq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andibateeq/subscriptions","organizations_url":"https://api.github.com/users/andibateeq/orgs","repos_url":"https://api.github.com/users/andibateeq/repos","events_url":"https://api.github.com/users/andibateeq/events{/privacy}","received_events_url":"https://api.github.com/users/andibateeq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andibateeq/bateeq-module","description":"bateeq module","fork":true,"url":"https://api.github.com/repos/andibateeq/bateeq-module","forks_url":"https://api.github.com/repos/andibateeq/bateeq-module/forks","keys_url":"https://api.github.com/repos/andibateeq/bateeq-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andibateeq/bateeq-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andibateeq/bateeq-module/teams","hooks_url":"https://api.github.com/repos/andibateeq/bateeq-module/hooks","issue_events_url":"https://api.github.com/repos/andibateeq/bateeq-module/issues/events{/number}","events_url":"https://api.github.com/repos/andibateeq/bateeq-module/events","assignees_url":"https://api.github.com/repos/andibateeq/bateeq-module/assignees{/user}","branches_url":"https://api.github.com/repos/andibateeq/bateeq-module/branches{/branch}","tags_url":"https://api.github.com/repos/andibateeq/bateeq-module/tags","blobs_url":"https://api.github.com/repos/andibateeq/bateeq-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andibateeq/bateeq-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andibateeq/bateeq-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/andibateeq/bateeq-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andibateeq/bateeq-module/statuses/{sha}","languages_url":"https://api.github.com/repos/andibateeq/bateeq-module/languages","stargazers_url":"https://api.github.com/repos/andibateeq/bateeq-module/stargazers","contributors_url":"https://api.github.com/repos/andibateeq/bateeq-module/contributors","subscribers_url":"https://api.github.com/repos/andibateeq/bateeq-module/subscribers","subscription_url":"https://api.github.com/repos/andibateeq/bateeq-module/subscription","commits_url":"https://api.github.com/repos/andibateeq/bateeq-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/andibateeq/bateeq-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/andibateeq/bateeq-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/andibateeq/bateeq-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/andibateeq/bateeq-module/contents/{+path}","compare_url":"https://api.github.com/repos/andibateeq/bateeq-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andibateeq/bateeq-module/merges","archive_url":"https://api.github.com/repos/andibateeq/bateeq-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andibateeq/bateeq-module/downloads","issues_url":"https://api.github.com/repos/andibateeq/bateeq-module/issues{/number}","pulls_url":"https://api.github.com/repos/andibateeq/bateeq-module/pulls{/number}","milestones_url":"https://api.github.com/repos/andibateeq/bateeq-module/milestones{/number}","notifications_url":"https://api.github.com/repos/andibateeq/bateeq-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andibateeq/bateeq-module/labels{/name}","releases_url":"https://api.github.com/repos/andibateeq/bateeq-module/releases{/id}","deployments_url":"https://api.github.com/repos/andibateeq/bateeq-module/deployments","created_at":"2017-05-26T02:01:28Z","updated_at":"2017-05-26T02:01:30Z","pushed_at":"2018-08-16T07:18:07Z","git_url":"git://github.com/andibateeq/bateeq-module.git","ssh_url":"git@github.com:andibateeq/bateeq-module.git","clone_url":"https://github.com/andibateeq/bateeq-module.git","svn_url":"https://github.com/andibateeq/bateeq-module","homepage":null,"size":1668,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:dev","ref":"dev","sha":"a7e666460da0d3169ba78acca3f44f9738fa777f","user":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":61858352,"node_id":"MDEwOlJlcG9zaXRvcnk2MTg1ODM1Mg==","name":"bateeq-module","full_name":"danliris/bateeq-module","owner":{"login":"danliris","id":20855729,"node_id":"MDQ6VXNlcjIwODU1NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/bateeq-module","description":"bateeq module","fork":false,"url":"https://api.github.com/repos/danliris/bateeq-module","forks_url":"https://api.github.com/repos/danliris/bateeq-module/forks","keys_url":"https://api.github.com/repos/danliris/bateeq-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/bateeq-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/bateeq-module/teams","hooks_url":"https://api.github.com/repos/danliris/bateeq-module/hooks","issue_events_url":"https://api.github.com/repos/danliris/bateeq-module/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/bateeq-module/events","assignees_url":"https://api.github.com/repos/danliris/bateeq-module/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/bateeq-module/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/bateeq-module/tags","blobs_url":"https://api.github.com/repos/danliris/bateeq-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/bateeq-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/bateeq-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/bateeq-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/bateeq-module/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/bateeq-module/languages","stargazers_url":"https://api.github.com/repos/danliris/bateeq-module/stargazers","contributors_url":"https://api.github.com/repos/danliris/bateeq-module/contributors","subscribers_url":"https://api.github.com/repos/danliris/bateeq-module/subscribers","subscription_url":"https://api.github.com/repos/danliris/bateeq-module/subscription","commits_url":"https://api.github.com/repos/danliris/bateeq-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/bateeq-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/bateeq-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/bateeq-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/bateeq-module/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/bateeq-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/bateeq-module/merges","archive_url":"https://api.github.com/repos/danliris/bateeq-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/bateeq-module/downloads","issues_url":"https://api.github.com/repos/danliris/bateeq-module/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/bateeq-module/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/bateeq-module/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/bateeq-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/bateeq-module/labels{/name}","releases_url":"https://api.github.com/repos/danliris/bateeq-module/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/bateeq-module/deployments","created_at":"2016-06-24T05:10:07Z","updated_at":"2018-08-08T16:13:18Z","pushed_at":"2018-08-16T07:18:08Z","git_url":"git://github.com/danliris/bateeq-module.git","ssh_url":"git@github.com:danliris/bateeq-module.git","clone_url":"https://github.com/danliris/bateeq-module.git","svn_url":"https://github.com/danliris/bateeq-module","homepage":null,"size":1695,"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":15,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":15,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/574"},"html":{"href":"https://github.com/danliris/bateeq-module/pull/574"},"issue":{"href":"https://api.github.com/repos/danliris/bateeq-module/issues/574"},"comments":{"href":"https://api.github.com/repos/danliris/bateeq-module/issues/574/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/574/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/574/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/bateeq-module/statuses/a64adca2acdb16f5ec41c76f81c344cbd84199dd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}