       describe "when the error has not been reported", ->
         beforeEach ->
           spyOn(atom, 'inDevMode').andReturn false
-          $.ajax.andCallFake (url, settings) -> settings.success(items: [])
+          $.ajax.andCallFake (url, settings) ->
+            if url.indexOf('git.io') > -1
+              settings.success('--', '201', {getResponseHeader: -> 'http://git.io/cats'})
+            else
+              settings.success(items: [])
           try
             a + 1
           catch e

          expect(button.textContent).toContain 'Create issue'
          fatalNotification = fatalError.querySelector('.fatal-notification')
          expect(fatalNotification.textContent).toContain 'You can help by creating an issue'
          expect(button.getAttribute('href')).toContain '%20steps%20to%20reproduce'

      describe "when the error has been reported", ->
        beforeEach ->
          spyOn(atom, 'inDevMode').andReturn false
          $.ajax.andCallFake (url, settings) -> settings.success
            items: [
              {
                title: 'ReferenceError: a is not defined'
                html_url: 'http://url.com/ok'
              }
            ]
          try
            a + 1
          catch e

          expect(issueBody).toContain '**Thrown From**: Atom Core'
          expect(issueBody).not.toContain 'cc @atom/core'

          expect($.ajax.calls[0].args[0]).toContain 'atom/atom'
          expect($.ajax.calls[1].args[0]).toContain 'git.io'

        it "contains core and editor config values", ->
          notificationContainer = workspaceElement.querySelector('atom-notifications')
