       """
 
   it 'formats an issue reopen event', ->
-    event =
-      data:
-        action: 'reopened'
-        issue:
-          number: number
-          title: title
-          user:
-            login: name
-          html_url: url
-        repository:
-          full_name: repo
+    event.data.action = 'reopened'
 
     expect(formatter(event)).toEqual """
       #{name} reopened Issue ##{number} on #{repo}

      """

  it 'formats an issue unassign event', ->
    event =
      data:
        action: 'unassigned'
        issue:
          number: number
          title: title
          user:
            login: name
          html_url: url
        repository:
          full_name: repo
        assignee:
          login: otherName

    expect(formatter(event)).toEqual """
      #{name} unassigned #{otherName} from Issue ##{number} on #{repo}

{githubRepo} = require '../helpers'

describe 'Issues Formatter', ->
  [event, label, name, number, otherName, repo, title, url] = []

  beforeEach ->
    label = faker.lorem.words(1)
