diff --git a/spec/fixtures/jquery-task-handler.coffee b/spec/fixtures/jquery-task-handler.coffee deleted file mode 100644 index b8deee712..000000000 --- a/spec/fixtures/jquery-task-handler.coffee +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = -> - try - require 'jquery' - true - catch e - false diff --git a/spec/task-spec.coffee b/spec/task-spec.coffee index 1cc10a8d6..90463fd19 100644 --- a/spec/task-spec.coffee +++ b/spec/task-spec.coffee @@ -1,26 +1,6 @@ Task = require '../src/task' describe "Task", -> - describe "populating the window with fake properties", -> - describe "when jQuery is loaded in a child process", -> - it "doesn't log to the console", -> - spyOn(console, 'log') - spyOn(console, 'error') - spyOn(console, 'warn') - - jqueryTask = new Task(require.resolve('./fixtures/jquery-task-handler')) - jqueryLoaded = false - jqueryTask.start (loaded) -> jqueryLoaded = loaded - - waitsFor "child process to start and jquery to be required", 5000, -> - jqueryLoaded - - runs -> - expect(jqueryLoaded).toBeTruthy() - expect(console.log).not.toHaveBeenCalled() - expect(console.error).not.toHaveBeenCalled() - expect(console.warn).not.toHaveBeenCalled() - describe "@once(taskPath, args..., callback)", -> it "terminates the process after it completes", -> handlerResult = null