chore(test): remove linter bugs

This commit is contained in:
r3nanp
2021-02-13 10:53:22 -03:00
parent 5d7ce2f7f6
commit 99c1b9488b

View File

@ -1,5 +1,6 @@
import ClipboardAction from '../src/clipboard-action'; /* eslint-disable no-unused-vars */
import Emitter from 'tiny-emitter'; import Emitter from 'tiny-emitter';
import ClipboardAction from '../src/clipboard-action';
describe('ClipboardAction', () => { describe('ClipboardAction', () => {
before(() => { before(() => {
@ -55,7 +56,7 @@ describe('ClipboardAction', () => {
describe('#set action', () => { describe('#set action', () => {
it('should throw an error since "action" is invalid', (done) => { it('should throw an error since "action" is invalid', (done) => {
try { try {
new ClipboardAction({ let clip = new ClipboardAction({
text: 'foo', text: 'foo',
action: 'paste', action: 'paste',
}); });
@ -72,7 +73,7 @@ describe('ClipboardAction', () => {
describe('#set target', () => { describe('#set target', () => {
it('should throw an error since "target" do not match any element', (done) => { it('should throw an error since "target" do not match any element', (done) => {
try { try {
new ClipboardAction({ let clip = new ClipboardAction({
target: document.querySelector('#foo'), target: document.querySelector('#foo'),
}); });
} catch (e) { } catch (e) {