{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/3","id":70712888,"html_url":"https://github.com/uzyn/ethereum-webpack-example-dapp/pull/3","diff_url":"https://github.com/uzyn/ethereum-webpack-example-dapp/pull/3.diff","patch_url":"https://github.com/uzyn/ethereum-webpack-example-dapp/pull/3.patch","issue_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues/3","number":3,"state":"open","locked":false,"title":"Added setup for testing using Mocha and Chai and some npm run scripts.","user":{"login":"graup","id":898549,"avatar_url":"https://avatars.githubusercontent.com/u/898549?v=3","gravatar_id":"","url":"https://api.github.com/users/graup","html_url":"https://github.com/graup","followers_url":"https://api.github.com/users/graup/followers","following_url":"https://api.github.com/users/graup/following{/other_user}","gists_url":"https://api.github.com/users/graup/gists{/gist_id}","starred_url":"https://api.github.com/users/graup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graup/subscriptions","organizations_url":"https://api.github.com/users/graup/orgs","repos_url":"https://api.github.com/users/graup/repos","events_url":"https://api.github.com/users/graup/events{/privacy}","received_events_url":"https://api.github.com/users/graup/received_events","type":"User","site_admin":false},"body":"Added testing (Mocha) and assertion (Chai) libraries. Just using the most recent version, not sure if that's a good idea, but thought for testing it doesn't really matter as these modules will never break your main application.\r\n\r\nAlso added an example test to test the Token contract.\r\n\r\nYou can either run `testrpc` in one terminal and `npm test` in another, or run `npm run test-testrpc` to do both at the same time. I added this option mostly for a CI environment. For a minimal example, maybe this is already a bit too much?\r\n\r\nI definitely think having basic structure for testing would be beneficent for this project, making it more comparable to tools like truffle (which of course still does more).\r\n\r\nI was also thinking about adding a LESS plugin, possibly referencing https://github.com/ethereum/dapp-styles and prettifying the example index.html. What do you think?","created_at":"2016-05-19T15:16:36Z","updated_at":"2016-05-19T15:16:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/3/commits","review_comments_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/3/comments","review_comment_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues/3/comments","statuses_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/statuses/3e4a6bd5e78a420606754495f779adf4a1303402","head":{"label":"graup:master","ref":"master","sha":"3e4a6bd5e78a420606754495f779adf4a1303402","user":{"login":"graup","id":898549,"avatar_url":"https://avatars.githubusercontent.com/u/898549?v=3","gravatar_id":"","url":"https://api.github.com/users/graup","html_url":"https://github.com/graup","followers_url":"https://api.github.com/users/graup/followers","following_url":"https://api.github.com/users/graup/following{/other_user}","gists_url":"https://api.github.com/users/graup/gists{/gist_id}","starred_url":"https://api.github.com/users/graup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graup/subscriptions","organizations_url":"https://api.github.com/users/graup/orgs","repos_url":"https://api.github.com/users/graup/repos","events_url":"https://api.github.com/users/graup/events{/privacy}","received_events_url":"https://api.github.com/users/graup/received_events","type":"User","site_admin":false},"repo":{"id":59149636,"name":"ethereum-webpack-example-dapp","full_name":"graup/ethereum-webpack-example-dapp","owner":{"login":"graup","id":898549,"avatar_url":"https://avatars.githubusercontent.com/u/898549?v=3","gravatar_id":"","url":"https://api.github.com/users/graup","html_url":"https://github.com/graup","followers_url":"https://api.github.com/users/graup/followers","following_url":"https://api.github.com/users/graup/following{/other_user}","gists_url":"https://api.github.com/users/graup/gists{/gist_id}","starred_url":"https://api.github.com/users/graup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graup/subscriptions","organizations_url":"https://api.github.com/users/graup/orgs","repos_url":"https://api.github.com/users/graup/repos","events_url":"https://api.github.com/users/graup/events{/privacy}","received_events_url":"https://api.github.com/users/graup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/graup/ethereum-webpack-example-dapp","description":"Template for Ethereum (Solidity) smart contract decentralized app (dapp) with Webpack","fork":true,"url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp","forks_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/forks","keys_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/teams","hooks_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/hooks","issue_events_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/issues/events{/number}","events_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/events","assignees_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/assignees{/user}","branches_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/branches{/branch}","tags_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/tags","blobs_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/statuses/{sha}","languages_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/languages","stargazers_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/stargazers","contributors_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/contributors","subscribers_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/subscribers","subscription_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/subscription","commits_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/contents/{+path}","compare_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/merges","archive_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/downloads","issues_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/issues{/number}","pulls_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/pulls{/number}","milestones_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/milestones{/number}","notifications_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/labels{/name}","releases_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/releases{/id}","deployments_url":"https://api.github.com/repos/graup/ethereum-webpack-example-dapp/deployments","created_at":"2016-05-18T20:40:29Z","updated_at":"2016-05-18T20:55:13Z","pushed_at":"2016-05-18T20:57:26Z","git_url":"git://github.com/graup/ethereum-webpack-example-dapp.git","ssh_url":"git@github.com:graup/ethereum-webpack-example-dapp.git","clone_url":"https://github.com/graup/ethereum-webpack-example-dapp.git","svn_url":"https://github.com/graup/ethereum-webpack-example-dapp","homepage":"","size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"uzyn:master","ref":"master","sha":"d0df2ea169b34c11c23cde9336e0d72cf8af35fc","user":{"login":"uzyn","id":280505,"avatar_url":"https://avatars.githubusercontent.com/u/280505?v=3","gravatar_id":"","url":"https://api.github.com/users/uzyn","html_url":"https://github.com/uzyn","followers_url":"https://api.github.com/users/uzyn/followers","following_url":"https://api.github.com/users/uzyn/following{/other_user}","gists_url":"https://api.github.com/users/uzyn/gists{/gist_id}","starred_url":"https://api.github.com/users/uzyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzyn/subscriptions","organizations_url":"https://api.github.com/users/uzyn/orgs","repos_url":"https://api.github.com/users/uzyn/repos","events_url":"https://api.github.com/users/uzyn/events{/privacy}","received_events_url":"https://api.github.com/users/uzyn/received_events","type":"User","site_admin":false},"repo":{"id":57431342,"name":"ethereum-webpack-example-dapp","full_name":"uzyn/ethereum-webpack-example-dapp","owner":{"login":"uzyn","id":280505,"avatar_url":"https://avatars.githubusercontent.com/u/280505?v=3","gravatar_id":"","url":"https://api.github.com/users/uzyn","html_url":"https://github.com/uzyn","followers_url":"https://api.github.com/users/uzyn/followers","following_url":"https://api.github.com/users/uzyn/following{/other_user}","gists_url":"https://api.github.com/users/uzyn/gists{/gist_id}","starred_url":"https://api.github.com/users/uzyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uzyn/subscriptions","organizations_url":"https://api.github.com/users/uzyn/orgs","repos_url":"https://api.github.com/users/uzyn/repos","events_url":"https://api.github.com/users/uzyn/events{/privacy}","received_events_url":"https://api.github.com/users/uzyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uzyn/ethereum-webpack-example-dapp","description":"Template for Ethereum (Solidity) smart contract decentralized app (dapp) with Webpack","fork":false,"url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp","forks_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/forks","keys_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/teams","hooks_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/hooks","issue_events_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues/events{/number}","events_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/events","assignees_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/assignees{/user}","branches_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/branches{/branch}","tags_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/tags","blobs_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/statuses/{sha}","languages_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/languages","stargazers_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/stargazers","contributors_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/contributors","subscribers_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/subscribers","subscription_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/subscription","commits_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/contents/{+path}","compare_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/merges","archive_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/downloads","issues_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues{/number}","pulls_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls{/number}","milestones_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/milestones{/number}","notifications_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/labels{/name}","releases_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/releases{/id}","deployments_url":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/deployments","created_at":"2016-04-30T07:13:21Z","updated_at":"2016-05-17T02:01:59Z","pushed_at":"2016-05-07T08:59:21Z","git_url":"git://github.com/uzyn/ethereum-webpack-example-dapp.git","ssh_url":"git@github.com:uzyn/ethereum-webpack-example-dapp.git","clone_url":"https://github.com/uzyn/ethereum-webpack-example-dapp.git","svn_url":"https://github.com/uzyn/ethereum-webpack-example-dapp","homepage":"","size":35,"stargazers_count":11,"watchers_count":11,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/3"},"html":{"href":"https://github.com/uzyn/ethereum-webpack-example-dapp/pull/3"},"issue":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues/3"},"comments":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/uzyn/ethereum-webpack-example-dapp/statuses/3e4a6bd5e78a420606754495f779adf4a1303402"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":129,"deletions":41,"changed_files":11}}