{"action":"closed","issue":{"url":"https://api.github.com/repos/makersacademy/issues/issues/4","labels_url":"https://api.github.com/repos/makersacademy/issues/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/makersacademy/issues/issues/4/comments","events_url":"https://api.github.com/repos/makersacademy/issues/issues/4/events","html_url":"https://github.com/makersacademy/issues/issues/4","id":84757605,"number":4,"title":"Bowling Challenge - Jasmine - Testing across different prototypes?!","user":{"login":"timrobertson0122","id":2273224,"avatar_url":"https://avatars.githubusercontent.com/u/2273224?v=3","gravatar_id":"","url":"https://api.github.com/users/timrobertson0122","html_url":"https://github.com/timrobertson0122","followers_url":"https://api.github.com/users/timrobertson0122/followers","following_url":"https://api.github.com/users/timrobertson0122/following{/other_user}","gists_url":"https://api.github.com/users/timrobertson0122/gists{/gist_id}","starred_url":"https://api.github.com/users/timrobertson0122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timrobertson0122/subscriptions","organizations_url":"https://api.github.com/users/timrobertson0122/orgs","repos_url":"https://api.github.com/users/timrobertson0122/repos","events_url":"https://api.github.com/users/timrobertson0122/events{/privacy}","received_events_url":"https://api.github.com/users/timrobertson0122/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T20:29:26Z","updated_at":"2015-06-04T08:15:11Z","closed_at":"2015-06-04T08:15:11Z","body":"So I have a Frame proto which puts each roll into a [rolls] array and a Scorecard proto which puts each frame array into a [frames] array. I'm now trying to test that the Scorecard can pick out the value of a particular roll from a particular frame, and have written the following:\r\n\r\n```\r\nit(\"knows the score of a particular ball in a particular frame\", function() {\r\n      scorecard.addFrame({total : function() { return 1} });\r\n      scorecard.addFrame({total : function() { return 1} });\r\n      expect(scorecard.frames[0].rolls[0]).toEqual(1);\r\n    });\r\n```\r\n\r\nThis is based off the following, working test:\r\n```\r\nit(\"can calculate a total of a series of frames\", function(){\r\n      scorecard.addFrame({total : function() { return 3} });\r\n      scorecard.addFrame({total : function() { return 3} });\r\n      expect(scorecard.total()).toEqual(6);\r\n    });\r\n```\r\n\r\nFollowing screenshot shows my results (ignore the console error) Works in console, Jasmine doesn't like it and I'm not sure if it's syntax or I'm just doing something mental:\r\n\r\n![screen shot 2015-06-03 at 21 17 22](https://cloud.githubusercontent.com/assets/2273224/7970655/7699ad6a-0a37-11e5-922e-493da2163b2f.png)\r\n\r\n@silvabox @spike01 @ptolemybarnes  Thanks!"}}