 {generateFakeFetchResponses, generateException} = require './helper'
 
 describe "Notifications Log", ->
-  [workspaceElement, activationPromise] = []
+  workspaceElement = null
 
   beforeEach ->
     workspaceElement = atom.views.getView(atom.workspace)
     atom.notifications.clear()
-    activationPromise = atom.packages.activatePackage('notifications')
 
     waitsForPromise ->
-      activationPromise
+      atom.packages.activatePackage('notifications')
 
     waitsForPromise ->
       atom.workspace.open(NotificationsLog::getURI())

            expect(didDismiss).toBe true
            expect(notification.dismissed).toBe true
            expect(notificationView.element).not.toBeVisible()


  describe "when notifications are added to atom.notifications", ->
    notificationsLogContainer = null

    beforeEach ->
      enableInitNotification = atom.notifications.addSuccess('A message to trigger initialization', dismissable: true)
      enableInitNotification.dismiss()
