From 2f6566d1c5f52f268e45651ea55403c3d0fa7ac7 Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Wed, 28 Nov 2012 17:15:26 -0800 Subject: [PATCH] Make jasmine timeout quicker (the right way) --- spec/spec-helper.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 10671aafe..7d8cf65e8 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -16,8 +16,6 @@ require 'window' requireStylesheet "jasmine.css" -jasmine.DEFAULT_TIMEOUT_INTERVAL = 200 - beforeEach -> window.fixturesProject = new Project(require.resolve('fixtures')) window.resetTimeouts() @@ -66,6 +64,8 @@ jasmine.unspy = (object, methodName) -> throw new Error("Not a spy") unless object[methodName].originalValue? object[methodName] = object[methodName].originalValue +jasmine.getEnv().defaultTimeoutInterval = 200 + window.keyIdentifierForKey = (key) -> if key.length > 1 # named key key