{"action":"created","comment":{"url":"https://api.github.com/repos/christineurban/card-game/pulls/comments/226791861","pull_request_review_id":166708390,"id":226791861,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjc5MTg2MQ==","diff_hunk":"@@ -0,0 +1,53 @@\n+'use strict';\n+\n+const assert = require('assert');\n+const expect = require('chai').expect;\n+\n+const build = require('../../../src/lib/deck-builder');\n+const Card = require('../../../src/lib/card');\n+const Deck = require('../../../src/lib/deck');\n+\n+\n+describe('Deck', function() {\n+    let deck;\n+\n+    beforeEach(function() {\n+        deck = new Deck(build());\n+    });\n+\n+    context('draw', function() {\n+        it('should return one Card in an array', function() {\n+            expect(deck.draw()).to.be.an('array').that.has.lengthOf(1);\n+        });\n+\n+        it('should be an instance of a Card', function() {\n+            expect(deck.draw()[0]).to.be.instanceOf(Card);\n+        });\n+    });\n+\n+    context('draw 10', function() {\n+        it('should return 10 Cards in an array', function() {\n+            expect(deck.draw(10)).to.be.an('array').that.has.lengthOf(10);\n+        });\n+    });\n+\n+    context('shuffle', function() {\n+        it('should rearrange the Cards in the Deck', function() {\n+            const staticDeck = new Deck(build());","path":"test/src/lib/deck.js","position":36,"original_position":36,"commit_id":"77a910e7a7c098b23adedd040f5d9bf2b53542b7","original_commit_id":"77a910e7a7c098b23adedd040f5d9bf2b53542b7","user":{"login":"booleangate","id":181567,"node_id":"MDQ6VXNlcjE4MTU2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/181567?v=4","gravatar_id":"","url":"https://api.github.com/users/booleangate","html_url":"https://github.com/booleangate","followers_url":"https://api.github.com/users/booleangate/followers","following_url":"https://api.github.com/users/booleangate/following{/other_user}","gists_url":"https://api.github.com/users/booleangate/gists{/gist_id}","starred_url":"https://api.github.com/users/booleangate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/booleangate/subscriptions","organizations_url":"https://api.github.com/users/booleangate/orgs","repos_url":"https://api.github.com/users/booleangate/repos","events_url":"https://api.github.com/users/booleangate/events{/privacy}","received_events_url":"https://api.github.com/users/booleangate/received_events","type":"User","site_admin":false},"body":"Instead of instantiating two decks, make a deep clone of the original deck, then compare the shuffled version against the original version.","created_at":"2018-10-19T21:55:39Z","updated_at":"2018-10-19T21:55:39Z","html_url":"https://github.com/christineurban/card-game/pull/6#discussion_r226791861","pull_request_url":"https://api.github.com/repos/christineurban/card-game/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/christineurban/card-game/pulls/comments/226791861"},"html":{"href":"https://github.com/christineurban/card-game/pull/6#discussion_r226791861"},"pull_request":{"href":"https://api.github.com/repos/christineurban/card-game/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/christineurban/card-game/pulls/6","id":224409328,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NDA5MzI4","html_url":"https://github.com/christineurban/card-game/pull/6","diff_url":"https://github.com/christineurban/card-game/pull/6.diff","patch_url":"https://github.com/christineurban/card-game/pull/6.patch","issue_url":"https://api.github.com/repos/christineurban/card-game/issues/6","number":6,"state":"open","locked":false,"title":"Week 3","user":{"login":"christineurban","id":9615099,"node_id":"MDQ6VXNlcjk2MTUwOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9615099?v=4","gravatar_id":"","url":"https://api.github.com/users/christineurban","html_url":"https://github.com/christineurban","followers_url":"https://api.github.com/users/christineurban/followers","following_url":"https://api.github.com/users/christineurban/following{/other_user}","gists_url":"https://api.github.com/users/christineurban/gists{/gist_id}","starred_url":"https://api.github.com/users/christineurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineurban/subscriptions","organizations_url":"https://api.github.com/users/christineurban/orgs","repos_url":"https://api.github.com/users/christineurban/repos","events_url":"https://api.github.com/users/christineurban/events{/privacy}","received_events_url":"https://api.github.com/users/christineurban/received_events","type":"User","site_admin":false},"body":"Not sure why my game tests are failing.","created_at":"2018-10-19T21:01:22Z","updated_at":"2018-10-19T21:55:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e96720f41e3ca06c8ad8fd2a8d55edfc93e4d511","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/christineurban/card-game/pulls/6/commits","review_comments_url":"https://api.github.com/repos/christineurban/card-game/pulls/6/comments","review_comment_url":"https://api.github.com/repos/christineurban/card-game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/christineurban/card-game/issues/6/comments","statuses_url":"https://api.github.com/repos/christineurban/card-game/statuses/77a910e7a7c098b23adedd040f5d9bf2b53542b7","head":{"label":"christineurban:week-3","ref":"week-3","sha":"77a910e7a7c098b23adedd040f5d9bf2b53542b7","user":{"login":"christineurban","id":9615099,"node_id":"MDQ6VXNlcjk2MTUwOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9615099?v=4","gravatar_id":"","url":"https://api.github.com/users/christineurban","html_url":"https://github.com/christineurban","followers_url":"https://api.github.com/users/christineurban/followers","following_url":"https://api.github.com/users/christineurban/following{/other_user}","gists_url":"https://api.github.com/users/christineurban/gists{/gist_id}","starred_url":"https://api.github.com/users/christineurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineurban/subscriptions","organizations_url":"https://api.github.com/users/christineurban/orgs","repos_url":"https://api.github.com/users/christineurban/repos","events_url":"https://api.github.com/users/christineurban/events{/privacy}","received_events_url":"https://api.github.com/users/christineurban/received_events","type":"User","site_admin":false},"repo":{"id":149676772,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk2NzY3NzI=","name":"card-game","full_name":"christineurban/card-game","private":false,"owner":{"login":"christineurban","id":9615099,"node_id":"MDQ6VXNlcjk2MTUwOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9615099?v=4","gravatar_id":"","url":"https://api.github.com/users/christineurban","html_url":"https://github.com/christineurban","followers_url":"https://api.github.com/users/christineurban/followers","following_url":"https://api.github.com/users/christineurban/following{/other_user}","gists_url":"https://api.github.com/users/christineurban/gists{/gist_id}","starred_url":"https://api.github.com/users/christineurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineurban/subscriptions","organizations_url":"https://api.github.com/users/christineurban/orgs","repos_url":"https://api.github.com/users/christineurban/repos","events_url":"https://api.github.com/users/christineurban/events{/privacy}","received_events_url":"https://api.github.com/users/christineurban/received_events","type":"User","site_admin":false},"html_url":"https://github.com/christineurban/card-game","description":null,"fork":false,"url":"https://api.github.com/repos/christineurban/card-game","forks_url":"https://api.github.com/repos/christineurban/card-game/forks","keys_url":"https://api.github.com/repos/christineurban/card-game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christineurban/card-game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christineurban/card-game/teams","hooks_url":"https://api.github.com/repos/christineurban/card-game/hooks","issue_events_url":"https://api.github.com/repos/christineurban/card-game/issues/events{/number}","events_url":"https://api.github.com/repos/christineurban/card-game/events","assignees_url":"https://api.github.com/repos/christineurban/card-game/assignees{/user}","branches_url":"https://api.github.com/repos/christineurban/card-game/branches{/branch}","tags_url":"https://api.github.com/repos/christineurban/card-game/tags","blobs_url":"https://api.github.com/repos/christineurban/card-game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christineurban/card-game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christineurban/card-game/git/refs{/sha}","trees_url":"https://api.github.com/repos/christineurban/card-game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christineurban/card-game/statuses/{sha}","languages_url":"https://api.github.com/repos/christineurban/card-game/languages","stargazers_url":"https://api.github.com/repos/christineurban/card-game/stargazers","contributors_url":"https://api.github.com/repos/christineurban/card-game/contributors","subscribers_url":"https://api.github.com/repos/christineurban/card-game/subscribers","subscription_url":"https://api.github.com/repos/christineurban/card-game/subscription","commits_url":"https://api.github.com/repos/christineurban/card-game/commits{/sha}","git_commits_url":"https://api.github.com/repos/christineurban/card-game/git/commits{/sha}","comments_url":"https://api.github.com/repos/christineurban/card-game/comments{/number}","issue_comment_url":"https://api.github.com/repos/christineurban/card-game/issues/comments{/number}","contents_url":"https://api.github.com/repos/christineurban/card-game/contents/{+path}","compare_url":"https://api.github.com/repos/christineurban/card-game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christineurban/card-game/merges","archive_url":"https://api.github.com/repos/christineurban/card-game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christineurban/card-game/downloads","issues_url":"https://api.github.com/repos/christineurban/card-game/issues{/number}","pulls_url":"https://api.github.com/repos/christineurban/card-game/pulls{/number}","milestones_url":"https://api.github.com/repos/christineurban/card-game/milestones{/number}","notifications_url":"https://api.github.com/repos/christineurban/card-game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christineurban/card-game/labels{/name}","releases_url":"https://api.github.com/repos/christineurban/card-game/releases{/id}","deployments_url":"https://api.github.com/repos/christineurban/card-game/deployments","created_at":"2018-09-20T22:14:46Z","updated_at":"2018-09-29T00:12:17Z","pushed_at":"2018-10-19T21:24:29Z","git_url":"git://github.com/christineurban/card-game.git","ssh_url":"git@github.com:christineurban/card-game.git","clone_url":"https://github.com/christineurban/card-game.git","svn_url":"https://github.com/christineurban/card-game","homepage":null,"size":21,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"christineurban:master","ref":"master","sha":"5f61e4663629ae2f599ea761e7b0c21a3b1e7fd0","user":{"login":"christineurban","id":9615099,"node_id":"MDQ6VXNlcjk2MTUwOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9615099?v=4","gravatar_id":"","url":"https://api.github.com/users/christineurban","html_url":"https://github.com/christineurban","followers_url":"https://api.github.com/users/christineurban/followers","following_url":"https://api.github.com/users/christineurban/following{/other_user}","gists_url":"https://api.github.com/users/christineurban/gists{/gist_id}","starred_url":"https://api.github.com/users/christineurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineurban/subscriptions","organizations_url":"https://api.github.com/users/christineurban/orgs","repos_url":"https://api.github.com/users/christineurban/repos","events_url":"https://api.github.com/users/christineurban/events{/privacy}","received_events_url":"https://api.github.com/users/christineurban/received_events","type":"User","site_admin":false},"repo":{"id":149676772,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk2NzY3NzI=","name":"card-game","full_name":"christineurban/card-game","private":false,"owner":{"login":"christineurban","id":9615099,"node_id":"MDQ6VXNlcjk2MTUwOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9615099?v=4","gravatar_id":"","url":"https://api.github.com/users/christineurban","html_url":"https://github.com/christineurban","followers_url":"https://api.github.com/users/christineurban/followers","following_url":"https://api.github.com/users/christineurban/following{/other_user}","gists_url":"https://api.github.com/users/christineurban/gists{/gist_id}","starred_url":"https://api.github.com/users/christineurban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineurban/subscriptions","organizations_url":"https://api.github.com/users/christineurban/orgs","repos_url":"https://api.github.com/users/christineurban/repos","events_url":"https://api.github.com/users/christineurban/events{/privacy}","received_events_url":"https://api.github.com/users/christineurban/received_events","type":"User","site_admin":false},"html_url":"https://github.com/christineurban/card-game","description":null,"fork":false,"url":"https://api.github.com/repos/christineurban/card-game","forks_url":"https://api.github.com/repos/christineurban/card-game/forks","keys_url":"https://api.github.com/repos/christineurban/card-game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christineurban/card-game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christineurban/card-game/teams","hooks_url":"https://api.github.com/repos/christineurban/card-game/hooks","issue_events_url":"https://api.github.com/repos/christineurban/card-game/issues/events{/number}","events_url":"https://api.github.com/repos/christineurban/card-game/events","assignees_url":"https://api.github.com/repos/christineurban/card-game/assignees{/user}","branches_url":"https://api.github.com/repos/christineurban/card-game/branches{/branch}","tags_url":"https://api.github.com/repos/christineurban/card-game/tags","blobs_url":"https://api.github.com/repos/christineurban/card-game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christineurban/card-game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christineurban/card-game/git/refs{/sha}","trees_url":"https://api.github.com/repos/christineurban/card-game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christineurban/card-game/statuses/{sha}","languages_url":"https://api.github.com/repos/christineurban/card-game/languages","stargazers_url":"https://api.github.com/repos/christineurban/card-game/stargazers","contributors_url":"https://api.github.com/repos/christineurban/card-game/contributors","subscribers_url":"https://api.github.com/repos/christineurban/card-game/subscribers","subscription_url":"https://api.github.com/repos/christineurban/card-game/subscription","commits_url":"https://api.github.com/repos/christineurban/card-game/commits{/sha}","git_commits_url":"https://api.github.com/repos/christineurban/card-game/git/commits{/sha}","comments_url":"https://api.github.com/repos/christineurban/card-game/comments{/number}","issue_comment_url":"https://api.github.com/repos/christineurban/card-game/issues/comments{/number}","contents_url":"https://api.github.com/repos/christineurban/card-game/contents/{+path}","compare_url":"https://api.github.com/repos/christineurban/card-game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christineurban/card-game/merges","archive_url":"https://api.github.com/repos/christineurban/card-game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christineurban/card-game/downloads","issues_url":"https://api.github.com/repos/christineurban/card-game/issues{/number}","pulls_url":"https://api.github.com/repos/christineurban/card-game/pulls{/number}","milestones_url":"https://api.github.com/repos/christineurban/card-game/milestones{/number}","notifications_url":"https://api.github.com/repos/christineurban/card-game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christineurban/card-game/labels{/name}","releases_url":"https://api.github.com/repos/christineurban/card-game/releases{/id}","deployments_url":"https://api.github.com/repos/christineurban/card-game/deployments","created_at":"2018-09-20T22:14:46Z","updated_at":"2018-09-29T00:12:17Z","pushed_at":"2018-10-19T21:24:29Z","git_url":"git://github.com/christineurban/card-game.git","ssh_url":"git@github.com:christineurban/card-game.git","clone_url":"https://github.com/christineurban/card-game.git","svn_url":"https://github.com/christineurban/card-game","homepage":null,"size":21,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/christineurban/card-game/pulls/6"},"html":{"href":"https://github.com/christineurban/card-game/pull/6"},"issue":{"href":"https://api.github.com/repos/christineurban/card-game/issues/6"},"comments":{"href":"https://api.github.com/repos/christineurban/card-game/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/christineurban/card-game/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/christineurban/card-game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/christineurban/card-game/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/christineurban/card-game/statuses/77a910e7a7c098b23adedd040f5d9bf2b53542b7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"booleangate"}}