See #375. Set log level to verbose for running specs on Windows

This commit is contained in:
Glavin Wiechert 2015-06-08 11:24:32 -03:00
parent e471642003
commit d78b3590ca
1 changed files with 8 additions and 2 deletions

View File

@ -47,8 +47,14 @@ describe "BeautifyLanguages", ->
# Force activate package # Force activate package
pack = atom.packages.getLoadedPackage("atom-beautify") pack = atom.packages.getLoadedPackage("atom-beautify")
pack.activateNow() pack.activateNow()
# Change logger level # Check if Windows
# atom.config.set('atom-beautify._loggerLevel', 'verbose') isWindows = process.platform is 'win32' or
process.env.OSTYPE is 'cygwin' or
process.env.OSTYPE is 'msys'
# Need more debugging on Windows
if isWindows
# Change logger level
atom.config.set('atom-beautify._loggerLevel', 'verbose')
# Return promise # Return promise
return activationPromise return activationPromise