 # issuesResponse
 generateFakeAjaxResponses = (options) ->
   $.ajax.andCallFake (url, settings) ->
-    if url.indexOf('git.io') > -1
-      response = options?.shortenerResponse ? ['--', '201', {getResponseHeader: -> 'https://git.io/cats'}]
-      settings.success.apply(settings, response)
+    if url.indexOf('bitly.com') > -1
+      response = options?.shortenerResponse ? {
+        data: url: 'http://bit.ly/cats'
+      }
+      settings.success(response)
     else if url.indexOf('atom.io/api/packages') > -1
       response = options?.packageResponse ? {
         repository: url: 'https://github.com/atom/notifications'


            button = fatalError.querySelector('.btn')
            expect(button.textContent).toContain 'Create issue on the notifications package'
            unless process.platform is 'win32'
              expect(button.getAttribute('href')).toContain 'atom/notifications/issues/new'
            else
              expect(button.getAttribute('href')).toContain 'git.io/cats'

            expect(issueTitle).toContain '$ATOM_HOME'
            expect(issueTitle).not.toContain process.env.ATOM_HOME


          button = fatalError.querySelector('.btn')
          expect(button.textContent).toContain 'Create issue on atom/atom'
          expect(button.getAttribute('href')).toContain 'bit.ly/cats'

          expect(issueBody).toContain 'ReferenceError: a is not defined'
          expect(issueBody).toContain '**Thrown From**: Atom Core'
