Skip to content

Commit 227dcc1

Browse files
committed
fix(dispatcher): remove fdescribe
1 parent 2304164 commit 227dcc1

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

spec/dispatcher.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ describe('Dispatcher', function () {
141141
})
142142

143143
it('fires "split" if cursor is in the middle', function () {
144-
console.log('HERE................')
145144
// <div>ba|r</div>
146145
elem.innerHTML = 'bar'
147146
const range = rangy.createRange()
@@ -160,7 +159,6 @@ describe('Dispatcher', function () {
160159
const evt = new KeyboardEvent('keydown', {keyCode: key.enter})
161160
elem.dispatchEvent(evt)
162161
expect(insert.calls).toEqual(1)
163-
console.log('END...........')
164162
})
165163
})
166164

src/dispatcher.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,10 @@ export default class Dispatcher {
276276
const cursor = range.forceCursor()
277277

278278
if (cursor.isAtTextEnd()) {
279-
console.log('at end', event.target)
280279
self.notify('insert', this, 'after', cursor)
281280
} else if (cursor.isAtBeginning()) {
282-
console.log('at beginning', event.target)
283281
self.notify('insert', this, 'before', cursor)
284282
} else {
285-
console.log('in split', event.target)
286283
self.notify('split', this, cursor.before(), cursor.after(), cursor)
287284
}
288285
})

0 commit comments

Comments
 (0)