{"action":"created","comment":{"url":"https://api.github.com/repos/alsatian-test/alsatian/pulls/comments/82987252","pull_request_review_id":3855660,"id":82987252,"diff_hunk":"@@ -1,8 +1,12 @@\n import { MatchError } from \"../_errors\";\n+import { FunctionSpy } from \"../_spying\";\n \n export class FunctionCallMatchError extends MatchError {\n \n-  public constructor(actualValue: any, shouldMatch: boolean, args?: Array<any>) {\n-    super(actualValue, \"function to be called\", `Expected function ${!shouldMatch ? \"not \" : \"\"}to be called${args ? \" with [\" + args.map(arg => JSON.stringify(arg)).join(\", \") + \"]\" : \"\"}.`);\n+  public constructor(actualValue: FunctionSpy, shouldMatch: boolean, args?: Array<any>) {\n+\n+    super(`function was ${shouldMatch && !(args && actualValue.calls.length) ? \"not \" : \"\"}called${args && actualValue.calls.length ? \" with \" + actualValue.calls.map(call => JSON.stringify(call.args)).join(\", \") : \"\"}.`,","path":"core/errors/function-call-match-error.ts","position":10,"original_position":10,"commit_id":"2f4e19537a0d8d1c42d667d1d1ac439fd9e301b0","original_commit_id":"e2550de48be28551eea29d30704d3a6c884f20b2","user":{"login":"jamesrichford","id":8244919,"avatar_url":"https://avatars.githubusercontent.com/u/8244919?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrichford","html_url":"https://github.com/jamesrichford","followers_url":"https://api.github.com/users/jamesrichford/followers","following_url":"https://api.github.com/users/jamesrichford/following{/other_user}","gists_url":"https://api.github.com/users/jamesrichford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrichford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrichford/subscriptions","organizations_url":"https://api.github.com/users/jamesrichford/orgs","repos_url":"https://api.github.com/users/jamesrichford/repos","events_url":"https://api.github.com/users/jamesrichford/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrichford/received_events","type":"User","site_admin":false},"body":"planning to refactor these as part of a larger refactor to do with printing out results, have moved to after beta.0 as need to get that out as priority :)","created_at":"2016-10-12T11:37:37Z","updated_at":"2016-10-12T11:37:37Z","html_url":"https://github.com/alsatian-test/alsatian/pull/167#discussion_r82987252","pull_request_url":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/alsatian-test/alsatian/pulls/comments/82987252"},"html":{"href":"https://github.com/alsatian-test/alsatian/pull/167#discussion_r82987252"},"pull_request":{"href":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167","id":86621278,"html_url":"https://github.com/alsatian-test/alsatian/pull/167","diff_url":"https://github.com/alsatian-test/alsatian/pull/167.diff","patch_url":"https://github.com/alsatian-test/alsatian/pull/167.patch","issue_url":"https://api.github.com/repos/alsatian-test/alsatian/issues/167","number":167,"state":"open","locked":false,"title":"Update expected and actual values","user":{"login":"jamesrichford","id":8244919,"avatar_url":"https://avatars.githubusercontent.com/u/8244919?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrichford","html_url":"https://github.com/jamesrichford","followers_url":"https://api.github.com/users/jamesrichford/followers","following_url":"https://api.github.com/users/jamesrichford/following{/other_user}","gists_url":"https://api.github.com/users/jamesrichford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrichford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrichford/subscriptions","organizations_url":"https://api.github.com/users/jamesrichford/orgs","repos_url":"https://api.github.com/users/jamesrichford/repos","events_url":"https://api.github.com/users/jamesrichford/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrichford/received_events","type":"User","site_admin":false},"body":"<!-- Hey, there! Thanks for contributing to Alsatian,\r\n      Add a quick description of the changes you have made below -->\r\n\r\n# Description\r\nUpdate expected and actual values for match errors when thrown closes #155, #153, #91\r\n\r\n<!-- Now, we've created a handy checklist before submitting your pull request to ensure it goes smoothly\r\n      (we checked the first one for you because we know it's true) -->\r\n\r\n# Checklist\r\n\r\n- [x] I am an awesome developer and proud of my code\r\n- [x] I added / updated / removed relevant unit or integration tests to prove my change works\r\n- [x] I ran all tests using ```npm test``` to make sure everything else still works\r\n- [x] I ran ```npm run review``` to ensure the code adheres to the repository standards\r\n","created_at":"2016-09-24T15:37:22Z","updated_at":"2016-10-12T11:37:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7261a95ab241a2a63fa1bf1717b9bd9f11325b9","assignee":{"login":"Jameskmonger","id":2037007,"avatar_url":"https://avatars.githubusercontent.com/u/2037007?v=3","gravatar_id":"","url":"https://api.github.com/users/Jameskmonger","html_url":"https://github.com/Jameskmonger","followers_url":"https://api.github.com/users/Jameskmonger/followers","following_url":"https://api.github.com/users/Jameskmonger/following{/other_user}","gists_url":"https://api.github.com/users/Jameskmonger/gists{/gist_id}","starred_url":"https://api.github.com/users/Jameskmonger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jameskmonger/subscriptions","organizations_url":"https://api.github.com/users/Jameskmonger/orgs","repos_url":"https://api.github.com/users/Jameskmonger/repos","events_url":"https://api.github.com/users/Jameskmonger/events{/privacy}","received_events_url":"https://api.github.com/users/Jameskmonger/received_events","type":"User","site_admin":false},"assignees":[{"login":"Jameskmonger","id":2037007,"avatar_url":"https://avatars.githubusercontent.com/u/2037007?v=3","gravatar_id":"","url":"https://api.github.com/users/Jameskmonger","html_url":"https://github.com/Jameskmonger","followers_url":"https://api.github.com/users/Jameskmonger/followers","following_url":"https://api.github.com/users/Jameskmonger/following{/other_user}","gists_url":"https://api.github.com/users/Jameskmonger/gists{/gist_id}","starred_url":"https://api.github.com/users/Jameskmonger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jameskmonger/subscriptions","organizations_url":"https://api.github.com/users/Jameskmonger/orgs","repos_url":"https://api.github.com/users/Jameskmonger/repos","events_url":"https://api.github.com/users/Jameskmonger/events{/privacy}","received_events_url":"https://api.github.com/users/Jameskmonger/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167/commits","review_comments_url":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167/comments","review_comment_url":"https://api.github.com/repos/alsatian-test/alsatian/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alsatian-test/alsatian/issues/167/comments","statuses_url":"https://api.github.com/repos/alsatian-test/alsatian/statuses/2f4e19537a0d8d1c42d667d1d1ac439fd9e301b0","head":{"label":"jamesrichford:issue#155","ref":"issue#155","sha":"2f4e19537a0d8d1c42d667d1d1ac439fd9e301b0","user":{"login":"jamesrichford","id":8244919,"avatar_url":"https://avatars.githubusercontent.com/u/8244919?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrichford","html_url":"https://github.com/jamesrichford","followers_url":"https://api.github.com/users/jamesrichford/followers","following_url":"https://api.github.com/users/jamesrichford/following{/other_user}","gists_url":"https://api.github.com/users/jamesrichford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrichford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrichford/subscriptions","organizations_url":"https://api.github.com/users/jamesrichford/orgs","repos_url":"https://api.github.com/users/jamesrichford/repos","events_url":"https://api.github.com/users/jamesrichford/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrichford/received_events","type":"User","site_admin":false},"repo":{"id":61786134,"name":"alsatian","full_name":"jamesrichford/alsatian","owner":{"login":"jamesrichford","id":8244919,"avatar_url":"https://avatars.githubusercontent.com/u/8244919?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrichford","html_url":"https://github.com/jamesrichford","followers_url":"https://api.github.com/users/jamesrichford/followers","following_url":"https://api.github.com/users/jamesrichford/following{/other_user}","gists_url":"https://api.github.com/users/jamesrichford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrichford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrichford/subscriptions","organizations_url":"https://api.github.com/users/jamesrichford/orgs","repos_url":"https://api.github.com/users/jamesrichford/repos","events_url":"https://api.github.com/users/jamesrichford/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrichford/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamesrichford/alsatian","description":"TypeScript testing framework with test cases","fork":true,"url":"https://api.github.com/repos/jamesrichford/alsatian","forks_url":"https://api.github.com/repos/jamesrichford/alsatian/forks","keys_url":"https://api.github.com/repos/jamesrichford/alsatian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamesrichford/alsatian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamesrichford/alsatian/teams","hooks_url":"https://api.github.com/repos/jamesrichford/alsatian/hooks","issue_events_url":"https://api.github.com/repos/jamesrichford/alsatian/issues/events{/number}","events_url":"https://api.github.com/repos/jamesrichford/alsatian/events","assignees_url":"https://api.github.com/repos/jamesrichford/alsatian/assignees{/user}","branches_url":"https://api.github.com/repos/jamesrichford/alsatian/branches{/branch}","tags_url":"https://api.github.com/repos/jamesrichford/alsatian/tags","blobs_url":"https://api.github.com/repos/jamesrichford/alsatian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamesrichford/alsatian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamesrichford/alsatian/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamesrichford/alsatian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamesrichford/alsatian/statuses/{sha}","languages_url":"https://api.github.com/repos/jamesrichford/alsatian/languages","stargazers_url":"https://api.github.com/repos/jamesrichford/alsatian/stargazers","contributors_url":"https://api.github.com/repos/jamesrichford/alsatian/contributors","subscribers_url":"https://api.github.com/repos/jamesrichford/alsatian/subscribers","subscription_url":"https://api.github.com/repos/jamesrichford/alsatian/subscription","commits_url":"https://api.github.com/repos/jamesrichford/alsatian/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamesrichford/alsatian/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamesrichford/alsatian/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamesrichford/alsatian/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamesrichford/alsatian/contents/{+path}","compare_url":"https://api.github.com/repos/jamesrichford/alsatian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamesrichford/alsatian/merges","archive_url":"https://api.github.com/repos/jamesrichford/alsatian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamesrichford/alsatian/downloads","issues_url":"https://api.github.com/repos/jamesrichford/alsatian/issues{/number}","pulls_url":"https://api.github.com/repos/jamesrichford/alsatian/pulls{/number}","milestones_url":"https://api.github.com/repos/jamesrichford/alsatian/milestones{/number}","notifications_url":"https://api.github.com/repos/jamesrichford/alsatian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamesrichford/alsatian/labels{/name}","releases_url":"https://api.github.com/repos/jamesrichford/alsatian/releases{/id}","deployments_url":"https://api.github.com/repos/jamesrichford/alsatian/deployments","created_at":"2016-06-23T07:55:42Z","updated_at":"2016-06-23T08:53:35Z","pushed_at":"2016-10-04T20:24:28Z","git_url":"git://github.com/jamesrichford/alsatian.git","ssh_url":"git@github.com:jamesrichford/alsatian.git","clone_url":"https://github.com/jamesrichford/alsatian.git","svn_url":"https://github.com/jamesrichford/alsatian","homepage":null,"size":471,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","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":1,"default_branch":"master"}},"base":{"label":"alsatian-test:master","ref":"master","sha":"b95a578d67037fc5eb0f0d74cbff34fe569d1eca","user":{"login":"alsatian-test","id":20105577,"avatar_url":"https://avatars.githubusercontent.com/u/20105577?v=3","gravatar_id":"","url":"https://api.github.com/users/alsatian-test","html_url":"https://github.com/alsatian-test","followers_url":"https://api.github.com/users/alsatian-test/followers","following_url":"https://api.github.com/users/alsatian-test/following{/other_user}","gists_url":"https://api.github.com/users/alsatian-test/gists{/gist_id}","starred_url":"https://api.github.com/users/alsatian-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsatian-test/subscriptions","organizations_url":"https://api.github.com/users/alsatian-test/orgs","repos_url":"https://api.github.com/users/alsatian-test/repos","events_url":"https://api.github.com/users/alsatian-test/events{/privacy}","received_events_url":"https://api.github.com/users/alsatian-test/received_events","type":"Organization","site_admin":false},"repo":{"id":60793910,"name":"alsatian","full_name":"alsatian-test/alsatian","owner":{"login":"alsatian-test","id":20105577,"avatar_url":"https://avatars.githubusercontent.com/u/20105577?v=3","gravatar_id":"","url":"https://api.github.com/users/alsatian-test","html_url":"https://github.com/alsatian-test","followers_url":"https://api.github.com/users/alsatian-test/followers","following_url":"https://api.github.com/users/alsatian-test/following{/other_user}","gists_url":"https://api.github.com/users/alsatian-test/gists{/gist_id}","starred_url":"https://api.github.com/users/alsatian-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsatian-test/subscriptions","organizations_url":"https://api.github.com/users/alsatian-test/orgs","repos_url":"https://api.github.com/users/alsatian-test/repos","events_url":"https://api.github.com/users/alsatian-test/events{/privacy}","received_events_url":"https://api.github.com/users/alsatian-test/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alsatian-test/alsatian","description":"TypeScript testing framework with test cases","fork":false,"url":"https://api.github.com/repos/alsatian-test/alsatian","forks_url":"https://api.github.com/repos/alsatian-test/alsatian/forks","keys_url":"https://api.github.com/repos/alsatian-test/alsatian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alsatian-test/alsatian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alsatian-test/alsatian/teams","hooks_url":"https://api.github.com/repos/alsatian-test/alsatian/hooks","issue_events_url":"https://api.github.com/repos/alsatian-test/alsatian/issues/events{/number}","events_url":"https://api.github.com/repos/alsatian-test/alsatian/events","assignees_url":"https://api.github.com/repos/alsatian-test/alsatian/assignees{/user}","branches_url":"https://api.github.com/repos/alsatian-test/alsatian/branches{/branch}","tags_url":"https://api.github.com/repos/alsatian-test/alsatian/tags","blobs_url":"https://api.github.com/repos/alsatian-test/alsatian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alsatian-test/alsatian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alsatian-test/alsatian/git/refs{/sha}","trees_url":"https://api.github.com/repos/alsatian-test/alsatian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alsatian-test/alsatian/statuses/{sha}","languages_url":"https://api.github.com/repos/alsatian-test/alsatian/languages","stargazers_url":"https://api.github.com/repos/alsatian-test/alsatian/stargazers","contributors_url":"https://api.github.com/repos/alsatian-test/alsatian/contributors","subscribers_url":"https://api.github.com/repos/alsatian-test/alsatian/subscribers","subscription_url":"https://api.github.com/repos/alsatian-test/alsatian/subscription","commits_url":"https://api.github.com/repos/alsatian-test/alsatian/commits{/sha}","git_commits_url":"https://api.github.com/repos/alsatian-test/alsatian/git/commits{/sha}","comments_url":"https://api.github.com/repos/alsatian-test/alsatian/comments{/number}","issue_comment_url":"https://api.github.com/repos/alsatian-test/alsatian/issues/comments{/number}","contents_url":"https://api.github.com/repos/alsatian-test/alsatian/contents/{+path}","compare_url":"https://api.github.com/repos/alsatian-test/alsatian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alsatian-test/alsatian/merges","archive_url":"https://api.github.com/repos/alsatian-test/alsatian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alsatian-test/alsatian/downloads","issues_url":"https://api.github.com/repos/alsatian-test/alsatian/issues{/number}","pulls_url":"https://api.github.com/repos/alsatian-test/alsatian/pulls{/number}","milestones_url":"https://api.github.com/repos/alsatian-test/alsatian/milestones{/number}","notifications_url":"https://api.github.com/repos/alsatian-test/alsatian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alsatian-test/alsatian/labels{/name}","releases_url":"https://api.github.com/repos/alsatian-test/alsatian/releases{/id}","deployments_url":"https://api.github.com/repos/alsatian-test/alsatian/deployments","created_at":"2016-06-09T17:33:57Z","updated_at":"2016-10-10T12:24:26Z","pushed_at":"2016-10-07T22:01:46Z","git_url":"git://github.com/alsatian-test/alsatian.git","ssh_url":"git@github.com:alsatian-test/alsatian.git","clone_url":"https://github.com/alsatian-test/alsatian.git","svn_url":"https://github.com/alsatian-test/alsatian","homepage":null,"size":453,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":29,"forks":2,"open_issues":29,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167"},"html":{"href":"https://github.com/alsatian-test/alsatian/pull/167"},"issue":{"href":"https://api.github.com/repos/alsatian-test/alsatian/issues/167"},"comments":{"href":"https://api.github.com/repos/alsatian-test/alsatian/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/alsatian-test/alsatian/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alsatian-test/alsatian/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/alsatian-test/alsatian/statuses/2f4e19537a0d8d1c42d667d1d1ac439fd9e301b0"}}}}
{"actor":{"display_login":"jamesrichford"}}