mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add jasmine.unspy
This commit is contained in:
@@ -64,6 +64,10 @@ jasmine.StringPrettyPrinter.prototype.emitObject = (obj) ->
|
||||
else
|
||||
emitObject.call(this, obj)
|
||||
|
||||
jasmine.unspy = (object, methodName) ->
|
||||
throw new Error("Not a spy") unless object[methodName].originalValue?
|
||||
object[methodName] = object[methodName].originalValue
|
||||
|
||||
window.keyIdentifierForKey = (key) ->
|
||||
if key.length > 1 # named key
|
||||
key
|
||||
|
||||
Reference in New Issue
Block a user