mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only require AtomReporter if actually being used
This commit is contained in:
@@ -13,8 +13,6 @@ module.exports.runSpecSuite = (specSuite, logErrors=true) ->
|
||||
nakedLoad 'jasmine'
|
||||
require 'jasmine-focused'
|
||||
|
||||
AtomReporter = require 'atom-reporter'
|
||||
|
||||
$ = require 'jquery'
|
||||
TimeReporter = require 'time-reporter'
|
||||
|
||||
@@ -26,6 +24,7 @@ module.exports.runSpecSuite = (specSuite, logErrors=true) ->
|
||||
onComplete: (runner) ->
|
||||
atom.exit(runner.results().failedCount > 0 ? 1 : 0)
|
||||
else
|
||||
AtomReporter = require 'atom-reporter'
|
||||
reporter = new AtomReporter()
|
||||
|
||||
require specSuite
|
||||
|
||||
Reference in New Issue
Block a user