mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Tweak test to not expect active element to be body
Since it's now not `blur()`ing anymore
This commit is contained in:
parent
8d690838d9
commit
91c726d4a0
@ -171,7 +171,7 @@ describe('Clipboard', () => {
|
||||
});
|
||||
|
||||
describe('#clearSelection', () => {
|
||||
it('should remove focus from target and text selection', (done) => {
|
||||
it('should clear text selection', (done) => {
|
||||
let clipboard = new Clipboard('.btn');
|
||||
|
||||
clipboard.on('success', (e) => {
|
||||
@ -180,7 +180,6 @@ describe('Clipboard', () => {
|
||||
|
||||
e.clearSelection();
|
||||
|
||||
assert.equal(selectedElem, document.body);
|
||||
assert.equal(selectedText, '');
|
||||
|
||||
done();
|
||||
|
Loading…
Reference in New Issue
Block a user