{"action":"created","issue":{"url":"https://api.github.com/repos/flarum/core/issues/4","labels_url":"https://api.github.com/repos/flarum/core/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/flarum/core/issues/4/comments","events_url":"https://api.github.com/repos/flarum/core/issues/4/events","html_url":"https://github.com/flarum/core/issues/4","id":52561995,"number":4,"title":"Set up JavaScript testing framework and write initial tests","user":{"login":"tobscure","id":128862,"avatar_url":"https://avatars.githubusercontent.com/u/128862?v=3","gravatar_id":"","url":"https://api.github.com/users/tobscure","html_url":"https://github.com/tobscure","followers_url":"https://api.github.com/users/tobscure/followers","following_url":"https://api.github.com/users/tobscure/following{/other_user}","gists_url":"https://api.github.com/users/tobscure/gists{/gist_id}","starred_url":"https://api.github.com/users/tobscure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobscure/subscriptions","organizations_url":"https://api.github.com/users/tobscure/orgs","repos_url":"https://api.github.com/users/tobscure/repos","events_url":"https://api.github.com/users/tobscure/events{/privacy}","received_events_url":"https://api.github.com/users/tobscure/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flarum/core/labels/ember","name":"ember","color":"e11d21"},{"url":"https://api.github.com/repos/flarum/core/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-20T12:01:10Z","updated_at":"2015-01-23T02:29:26Z","closed_at":null,"body":"When building this foundational prototype, I neglected to learn how to write tests in the interest of time. However, I realise that tests will be extremely important for the longevity of the project, and I am very keen to adopt a test-driven development approach for Flarum.\r\n\r\nI personally need to read up properly about how to actually write and use tests in Ember. If anyone would be willing to make a start with some provisional tests, that would be great. Don’t worry, I will be making an effort to learn soon!\r\n\r\n- [x] Set up Ember testing framework\r\n- [ ] Write tests for current behaviour\r\n- [ ] Proceed with test-driven development"},"comment":{"url":"https://api.github.com/repos/flarum/core/issues/comments/71138253","html_url":"https://github.com/flarum/core/issues/4#issuecomment-71138253","issue_url":"https://api.github.com/repos/flarum/core/issues/4","id":71138253,"user":{"login":"tobscure","id":128862,"avatar_url":"https://avatars.githubusercontent.com/u/128862?v=3","gravatar_id":"","url":"https://api.github.com/users/tobscure","html_url":"https://github.com/tobscure","followers_url":"https://api.github.com/users/tobscure/followers","following_url":"https://api.github.com/users/tobscure/following{/other_user}","gists_url":"https://api.github.com/users/tobscure/gists{/gist_id}","starred_url":"https://api.github.com/users/tobscure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobscure/subscriptions","organizations_url":"https://api.github.com/users/tobscure/orgs","repos_url":"https://api.github.com/users/tobscure/repos","events_url":"https://api.github.com/users/tobscure/events{/privacy}","received_events_url":"https://api.github.com/users/tobscure/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T02:29:26Z","updated_at":"2015-01-23T02:29:26Z","body":"Sorted it out — it was because the API URL was wrong. Fixed in d13ef6f1fc5d5cd79c44e37ab7853410049bccc0. Wrote some initial tests in bbf2c971e403a0e61f0718241b577fff6b9475d5. One is failing, waiting on kurko/ember-json-api#59\r\n\r\nUltimately we'll need to set up fixtures/synthetic AJAX responses rather than the calling a live API."}}