{"action":"created","issue":{"url":"https://api.github.com/repos/testiumjs/testium-mocha/issues/1","labels_url":"https://api.github.com/repos/testiumjs/testium-mocha/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/testiumjs/testium-mocha/issues/1/comments","events_url":"https://api.github.com/repos/testiumjs/testium-mocha/issues/1/events","html_url":"https://github.com/testiumjs/testium-mocha/pull/1","id":112252150,"number":1,"title":"First working version","user":{"login":"jkrems","id":567540,"avatar_url":"https://avatars.githubusercontent.com/u/567540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkrems","html_url":"https://github.com/jkrems","followers_url":"https://api.github.com/users/jkrems/followers","following_url":"https://api.github.com/users/jkrems/following{/other_user}","gists_url":"https://api.github.com/users/jkrems/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrems/subscriptions","organizations_url":"https://api.github.com/users/jkrems/orgs","repos_url":"https://api.github.com/users/jkrems/repos","events_url":"https://api.github.com/users/jkrems/events{/privacy}","received_events_url":"https://api.github.com/users/jkrems/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-19T23:16:51Z","updated_at":"2015-10-22T02:19:29Z","closed_at":"2015-10-21T23:46:21Z","pull_request":{"url":"https://api.github.com/repos/testiumjs/testium-mocha/pulls/1","html_url":"https://github.com/testiumjs/testium-mocha/pull/1","diff_url":"https://github.com/testiumjs/testium-mocha/pull/1.diff","patch_url":"https://github.com/testiumjs/testium-mocha/pull/1.patch"},"body":"Straight port from `testium`. One difference: We also expose an alternate interface which is a awesome (awful?) prototype hack which allows us to side-step the previous need for using `this` and do the following instead:\r\n\r\n```js\r\nimport { browser } from 'testium-mocha';\r\n\r\ndescribe('foo', () => {\r\n  before(browser.beforeHook());\r\n\r\n  it('does stuff', () => {\r\n    browser.navigateTo('/');\r\n  });\r\n});\r\n```\r\n\r\nThe old syntax still works:\r\n\r\n```coffee\r\ninjectBrowser = require 'testium-mocha'\r\n\r\ndescribe 'foo', ->\r\n  before injectBrowser()\r\n\r\n  it 'does stuff', ->\r\n    @browser.navigateTo '/'\r\n```\r\n\r\nDepends on:\r\n* https://github.com/testiumjs/testium-core/pull/10\r\n* https://github.com/testiumjs/testium-driver-sync/pull/2\r\n\r\nPart of https://github.com/groupon/testium/pull/171"},"comment":{"url":"https://api.github.com/repos/testiumjs/testium-mocha/issues/comments/150084919","html_url":"https://github.com/testiumjs/testium-mocha/pull/1#issuecomment-150084919","issue_url":"https://api.github.com/repos/testiumjs/testium-mocha/issues/1","id":150084919,"user":{"login":"EndangeredMassa","id":41545,"avatar_url":"https://avatars.githubusercontent.com/u/41545?v=3","gravatar_id":"","url":"https://api.github.com/users/EndangeredMassa","html_url":"https://github.com/EndangeredMassa","followers_url":"https://api.github.com/users/EndangeredMassa/followers","following_url":"https://api.github.com/users/EndangeredMassa/following{/other_user}","gists_url":"https://api.github.com/users/EndangeredMassa/gists{/gist_id}","starred_url":"https://api.github.com/users/EndangeredMassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EndangeredMassa/subscriptions","organizations_url":"https://api.github.com/users/EndangeredMassa/orgs","repos_url":"https://api.github.com/users/EndangeredMassa/repos","events_url":"https://api.github.com/users/EndangeredMassa/events{/privacy}","received_events_url":"https://api.github.com/users/EndangeredMassa/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T02:19:29Z","updated_at":"2015-10-22T02:19:29Z","body":"Oh, it was merged and deleted. That makes sense!"}}