mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
chore(test): remove linter bugs
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user