Skip to content

Commit

Permalink
test(selection): update test
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Jun 4, 2018
1 parent a5893d2 commit 7497ccb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/specs/selection/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,20 +250,11 @@ describe('Message Selection', () => {
})

it('ctrlKey should be true if ctrl key is pressed while clicking', done => {
window.dispatchEvent(new MouseEvent('mousedown', {
button: 0,
clientX: 20,
clientY: 20,
}))

window.dispatchEvent(new KeyboardEvent('keydown', {
key: 'Control',
}))

window.dispatchEvent(new MouseEvent('mouseup', {
button: 0,
clientX: 10,
clientY: 10,
ctrlKey: true,
}))

setTimeout(() => {
Expand Down

0 comments on commit 7497ccb

Please sign in to comment.