mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-12 22:50:54 +03:00
Restore package specs in suite. Didn't mean to commit these comments.
This commit is contained in:
parent
c326988a7d
commit
43495f05ba
@ -29,24 +29,24 @@ runAllSpecs = ->
|
||||
requireSpecs(path.join(resourcePath, 'spec'))
|
||||
setSpecType('core')
|
||||
|
||||
# fixturesPackagesPath = path.join(__dirname, 'fixtures', 'packages')
|
||||
# packagePaths = atom.packages.getAvailablePackageNames().map (packageName) ->
|
||||
# atom.packages.resolvePackagePath(packageName)
|
||||
# packagePaths = _.groupBy packagePaths, (packagePath) ->
|
||||
# if packagePath.indexOf("#{fixturesPackagesPath}#{path.sep}") is 0
|
||||
# 'fixtures'
|
||||
# else if packagePath.indexOf("#{resourcePath}#{path.sep}") is 0
|
||||
# 'bundled'
|
||||
# else
|
||||
# 'user'
|
||||
#
|
||||
# # Run bundled package specs
|
||||
# requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.bundled ? []
|
||||
# setSpecType('bundled')
|
||||
#
|
||||
# # Run user package specs
|
||||
# requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.user ? []
|
||||
# setSpecType('user')
|
||||
fixturesPackagesPath = path.join(__dirname, 'fixtures', 'packages')
|
||||
packagePaths = atom.packages.getAvailablePackageNames().map (packageName) ->
|
||||
atom.packages.resolvePackagePath(packageName)
|
||||
packagePaths = _.groupBy packagePaths, (packagePath) ->
|
||||
if packagePath.indexOf("#{fixturesPackagesPath}#{path.sep}") is 0
|
||||
'fixtures'
|
||||
else if packagePath.indexOf("#{resourcePath}#{path.sep}") is 0
|
||||
'bundled'
|
||||
else
|
||||
'user'
|
||||
|
||||
# Run bundled package specs
|
||||
requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.bundled ? []
|
||||
setSpecType('bundled')
|
||||
|
||||
# Run user package specs
|
||||
requireSpecs(path.join(packagePath, 'spec')) for packagePath in packagePaths.user ? []
|
||||
setSpecType('user')
|
||||
|
||||
if specDirectory = atom.getLoadSettings().specDirectory
|
||||
requireSpecs(specDirectory)
|
||||
|
Loading…
Reference in New Issue
Block a user