mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Reset project in AtomEnvironment::reset
This commit is contained in:
@@ -9,7 +9,6 @@ Grim = require 'grim'
|
||||
KeymapManager = require '../src/keymap-extensions'
|
||||
|
||||
{Point} = require 'text-buffer'
|
||||
Project = require '../src/project'
|
||||
Workspace = require '../src/workspace'
|
||||
ServiceHub = require 'service-hub'
|
||||
TextEditor = require '../src/text-editor'
|
||||
@@ -73,9 +72,8 @@ isCoreSpec = false
|
||||
beforeEach ->
|
||||
documentTitle = null
|
||||
|
||||
projectPath = path.join(@specDirectory, 'fixtures')
|
||||
atom.project = new Project({notificationManager: atom.notifications, packageManager: atom.packages, config: atom.config, confirm: atom.confirm})
|
||||
atom.project.setPaths([projectPath])
|
||||
atom.project.setPaths([path.join(@specDirectory, 'fixtures')])
|
||||
|
||||
atom.workspace = new Workspace({
|
||||
config: atom.config, project: atom.project, packageManager: atom.packages,
|
||||
notificationManager: atom.notifications,
|
||||
@@ -150,9 +148,6 @@ afterEach ->
|
||||
atom.themes.workspace = null
|
||||
delete atom.state.workspace
|
||||
|
||||
atom.project?.destroy()
|
||||
atom.project = null
|
||||
|
||||
delete atom.state.packageStates
|
||||
atom.reset()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user