mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Make jasmine timeout quicker (the right way)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user