Tweak test to not expect active element to be body

Since it's now not `blur()`ing anymore
This commit is contained in:
Patrick H. Lauke 2022-04-22 13:14:04 +01:00
parent 8d690838d9
commit 91c726d4a0

View File

@ -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();