diff --git a/spec/jasmine-helper.es6 b/spec/jasmine-helper.es6 index 32a6d3cfb..89a33ebc4 100644 --- a/spec/jasmine-helper.es6 +++ b/spec/jasmine-helper.es6 @@ -7,6 +7,9 @@ import ConsoleReporter from './console-reporter' import N1TerminalReporter from './terminal-reporter' export function runSpecSuite(specSuite) { + for (const key of Object.keys(jasmineExports)) { + window[key] = jasmineExports[key] + } const timeReporter = new TimeReporter(); const consoleReporter = new ConsoleReporter(); const terminalReporter = new N1TerminalReporter(); diff --git a/spec/spec-bootstrap.es6 b/spec/spec-bootstrap.es6 index 43923237c..1e5a3d195 100644 --- a/spec/spec-bootstrap.es6 +++ b/spec/spec-bootstrap.es6 @@ -3,26 +3,38 @@ global.Promise = require('bluebird'); Promise.longStackTraces(); -import jasmineExports from './jasmine'; +// import jasmineExports from './jasmine'; import NylasEnvConstructor from '../src/nylas-env'; - -Object.assign(window, { - NylasEnv: NylasEnvConstructor.loadOrCreate(), - jasmine: jasmineExports.jasmine, - it: jasmineExports.it, - xit: jasmineExports.xit, - runs: jasmineExports.runs, - waits: jasmineExports.waits, - spyOn: jasmineExports.spyOn, - expect: jasmineExports.expect, - waitsFor: jasmineExports.waitsFor, - describe: jasmineExports.describe, - xdescribe: jasmineExports.xdescribe, - afterEach: jasmineExports.afterEach, - beforeEach: jasmineExports.beforeEach, -}) - +window.NylasEnv = NylasEnvConstructor.loadOrCreate(); import {runSpecSuite} from './jasmine-helper'; + +// Object.assign(window, { +// NylasEnv: NylasEnvConstructor.loadOrCreate(), +// +// jasmine: jasmineExports.jasmine, +// +// it: jasmineExports.it, +// xit: jasmineExports.xit, +// runs: jasmineExports.runs, +// waits: jasmineExports.waits, +// spyOn: jasmineExports.spyOn, +// expect: jasmineExports.expect, +// waitsFor: jasmineExports.waitsFor, +// describe: jasmineExports.describe, +// xdescribe: jasmineExports.xdescribe, +// afterEach: jasmineExports.afterEach, +// beforeEach: jasmineExports.beforeEach, +// }) + NylasEnv.initialize(); + +// specSetup.extendGlobalWindow(); +// specSetup.addReporters(); +// specSetup.setupDOM(); +// +// specSetup.setupJasmine(); +// specSetup.requireSpecs(); +// specSetup.runSpecs(); + runSpecSuite('./spec-suite');