{"action":"created","issue":{"url":"https://api.github.com/repos/Zarwlar/Game/issues/10","repository_url":"https://api.github.com/repos/Zarwlar/Game","labels_url":"https://api.github.com/repos/Zarwlar/Game/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Zarwlar/Game/issues/10/comments","events_url":"https://api.github.com/repos/Zarwlar/Game/issues/10/events","html_url":"https://github.com/Zarwlar/Game/issues/10","id":240856184,"number":10,"title":"Добавить тесты","user":{"login":"clicktronix","id":15245608,"avatar_url":"https://avatars7.githubusercontent.com/u/15245608?v=4","gravatar_id":"","url":"https://api.github.com/users/clicktronix","html_url":"https://github.com/clicktronix","followers_url":"https://api.github.com/users/clicktronix/followers","following_url":"https://api.github.com/users/clicktronix/following{/other_user}","gists_url":"https://api.github.com/users/clicktronix/gists{/gist_id}","starred_url":"https://api.github.com/users/clicktronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clicktronix/subscriptions","organizations_url":"https://api.github.com/users/clicktronix/orgs","repos_url":"https://api.github.com/users/clicktronix/repos","events_url":"https://api.github.com/users/clicktronix/events{/privacy}","received_events_url":"https://api.github.com/users/clicktronix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-06T06:26:23Z","updated_at":"2017-07-15T08:05:57Z","closed_at":null,"body":"Вообще по хорошемы тесты пишут для каждого метода. У тебя сейчас затестирован слой вьюхи, а на модель тестов как таковых нет. Добавть тестовых юз кейсов для методов вьюхи еще плиз) `getCellState`, `toggleState`, `getNextGen` и т.д. Ну и вообще для каждого слоя по хорошему сделать отдельный файл с тестами, для контроллер тоже нужно добавить тестов"},"comment":{"url":"https://api.github.com/repos/Zarwlar/Game/issues/comments/315518139","html_url":"https://github.com/Zarwlar/Game/issues/10#issuecomment-315518139","issue_url":"https://api.github.com/repos/Zarwlar/Game/issues/10","id":315518139,"user":{"login":"clicktronix","id":15245608,"avatar_url":"https://avatars7.githubusercontent.com/u/15245608?v=4","gravatar_id":"","url":"https://api.github.com/users/clicktronix","html_url":"https://github.com/clicktronix","followers_url":"https://api.github.com/users/clicktronix/followers","following_url":"https://api.github.com/users/clicktronix/following{/other_user}","gists_url":"https://api.github.com/users/clicktronix/gists{/gist_id}","starred_url":"https://api.github.com/users/clicktronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clicktronix/subscriptions","organizations_url":"https://api.github.com/users/clicktronix/orgs","repos_url":"https://api.github.com/users/clicktronix/repos","events_url":"https://api.github.com/users/clicktronix/events{/privacy}","received_events_url":"https://api.github.com/users/clicktronix/received_events","type":"User","site_admin":false},"created_at":"2017-07-15T08:05:57Z","updated_at":"2017-07-15T08:05:57Z","body":"Понял) есть библиотека sinon. В ней можно вешать шпионов на функции, а потом отсматривать вызвались они или нет. \r\nДопустим у тебя есть метод `this.board.changeSize`, ты вешаешь на него шпиона. Вызываешь метод `changeHeight()` и проверяешь вызвался ли метод `this.board.changeSize`. Ну и переданные аргументы в этот метод можно протестировать с помощью этой либы. Посмотри ее)"}}
{"actor":{"display_login":"clicktronix"}}