mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 03:23:45 +08:00
fix(specs): Remove workspace from spec helper
This commit is contained in:
parent
0b68f6ebb2
commit
699da9435f
1 changed files with 0 additions and 7 deletions
|
@ -14,7 +14,6 @@ KeymapManager = require '../src/keymap-extensions'
|
|||
{$} = require '../src/space-pen-extensions'
|
||||
|
||||
Config = require '../src/config'
|
||||
Workspace = require '../src/workspace-edgehill'
|
||||
ServiceHub = require 'service-hub'
|
||||
pathwatcher = require 'pathwatcher'
|
||||
clipboard = require 'clipboard'
|
||||
|
@ -97,12 +96,10 @@ beforeEach ->
|
|||
|
||||
$.fx.off = true
|
||||
documentTitle = null
|
||||
atom.workspace = new Workspace()
|
||||
atom.packages.serviceHub = new ServiceHub
|
||||
atom.keymaps.keyBindings = _.clone(keyBindingsToRestore)
|
||||
atom.commands.restoreSnapshot(commandsToRestore)
|
||||
atom.styles.restoreSnapshot(styleElementsToRestore)
|
||||
|
||||
atom.workspaceViewParentSelector = '#jasmine-content'
|
||||
|
||||
window.resetTimeouts()
|
||||
|
@ -164,10 +161,6 @@ afterEach ->
|
|||
atom.menu.template = []
|
||||
atom.contextMenu.clear()
|
||||
|
||||
atom.workspace?.destroy()
|
||||
atom.workspace = null
|
||||
delete atom.state.workspace
|
||||
|
||||
atom.themes.removeStylesheet('global-editor-styles')
|
||||
|
||||
delete atom.state.packageStates
|
||||
|
|
Loading…
Reference in a new issue