{"action":"created","issue":{"url":"https://api.github.com/repos/google/boardgame.io/issues/260","repository_url":"https://api.github.com/repos/google/boardgame.io","labels_url":"https://api.github.com/repos/google/boardgame.io/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/google/boardgame.io/issues/260/comments","events_url":"https://api.github.com/repos/google/boardgame.io/issues/260/events","html_url":"https://github.com/google/boardgame.io/issues/260","id":351933060,"node_id":"MDU6SXNzdWUzNTE5MzMwNjA=","number":260,"title":"Game Logic Test Example","user":{"login":"yairhaimo","id":1783303,"node_id":"MDQ6VXNlcjE3ODMzMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/1783303?v=4","gravatar_id":"","url":"https://api.github.com/users/yairhaimo","html_url":"https://github.com/yairhaimo","followers_url":"https://api.github.com/users/yairhaimo/followers","following_url":"https://api.github.com/users/yairhaimo/following{/other_user}","gists_url":"https://api.github.com/users/yairhaimo/gists{/gist_id}","starred_url":"https://api.github.com/users/yairhaimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yairhaimo/subscriptions","organizations_url":"https://api.github.com/users/yairhaimo/orgs","repos_url":"https://api.github.com/users/yairhaimo/repos","events_url":"https://api.github.com/users/yairhaimo/events{/privacy}","received_events_url":"https://api.github.com/users/yairhaimo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-19T20:45:40Z","updated_at":"2018-08-20T07:15:09Z","closed_at":null,"author_association":"NONE","body":"It would be great to have an example on how to test the game logic itself without the UI layer and without using low level (redux) methods such as creating a reducer and dispatching events."},"comment":{"url":"https://api.github.com/repos/google/boardgame.io/issues/comments/414219540","html_url":"https://github.com/google/boardgame.io/issues/260#issuecomment-414219540","issue_url":"https://api.github.com/repos/google/boardgame.io/issues/260","id":414219540,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDIxOTU0MA==","user":{"login":"yairhaimo","id":1783303,"node_id":"MDQ6VXNlcjE3ODMzMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/1783303?v=4","gravatar_id":"","url":"https://api.github.com/users/yairhaimo","html_url":"https://github.com/yairhaimo","followers_url":"https://api.github.com/users/yairhaimo/followers","following_url":"https://api.github.com/users/yairhaimo/following{/other_user}","gists_url":"https://api.github.com/users/yairhaimo/gists{/gist_id}","starred_url":"https://api.github.com/users/yairhaimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yairhaimo/subscriptions","organizations_url":"https://api.github.com/users/yairhaimo/orgs","repos_url":"https://api.github.com/users/yairhaimo/repos","events_url":"https://api.github.com/users/yairhaimo/events{/privacy}","received_events_url":"https://api.github.com/users/yairhaimo/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T07:15:09Z","updated_at":"2018-08-20T07:15:09Z","author_association":"NONE","body":"Could this be a valid test?\r\n```\r\nimport {  TicTacToe } from './App';\r\nimport { Client } from 'boardgame.io/client';\r\n\r\nit('should work', () => {\r\n  const client = Client({\r\n    game: TicTacToe\r\n  });\r\n  client.moves.clickCell(1);\r\n  client.events.endTurn();\r\n  client.moves.clickCell(2);\r\n  const { G } = client.store.getState();\r\n  expect(G.cells).toEqual([null, '0', '1', null, null, null, null, null, null]);\r\n});\r\n```"}}
{"actor":{"display_login":"yairhaimo"}}