Skip to content
Snippets Groups Projects
Commit f4fca2de authored by Mike Greiling's avatar Mike Greiling
Browse files

simplify test for focus state

parent 66f9086f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -59,12 +59,8 @@
expect(triggered).toBe(true);
});
it('triggers `focus`', function() {
var focused = false;
$(this.selector).on('focus', function() {
focused = true;
});
this.shortcut.replyWithSelectedText();
expect(focused).toBe(true);
expect(document.activeElement).toBe(document.querySelector(this.selector));
});
});
describe('with a one-line selection', function() {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment