Commit f4fca2de authored by Mike Greiling's avatar Mike Greiling

simplify test for focus state

parent 66f9086f
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment