Spec for unsubscribing from commands

This commit is contained in:
Ben Ogle 2014-09-30 09:45:55 -07:00
parent 50cf5f3e95
commit a8d93f9cf4

View File

@ -2264,6 +2264,10 @@ describe "TextEditorComponent", ->
wrapperView.detach()
wrapperView.attachToDom()
wrapperView.trigger('core:move-right')
expect(editor.getCursorBufferPosition()).toEqual [0, 1]
buildMouseEvent = (type, properties...) ->
properties = extend({bubbles: true, cancelable: true}, properties...)
properties.detail ?= 1