Clear notifications and context menus in AtomEnvironment::reset

This commit is contained in:
Max Brunsfeld
2015-10-08 12:41:07 -07:00
parent 9a4cbb9e16
commit fb2a1284f6
2 changed files with 4 additions and 3 deletions

View File

@@ -70,7 +70,6 @@ isCoreSpec = false
{resourcePath} = atom.getLoadSettings()
beforeEach ->
documentTitle = null
@@ -146,8 +145,6 @@ beforeEach ->
afterEach ->
atom.packages.deactivatePackages()
atom.contextMenu.clear()
atom.notifications.clear()
atom.workspace?.destroy()
atom.workspace = null

View File

@@ -249,6 +249,10 @@ class AtomEnvironment extends Model
@clipboard.reset()
@notifications.clear()
@contextMenu.clear()
###
Section: Event Subscription
###