Merge branch 'master' of github.com:zenorocha/clipboard.js into feature-732-removing-dom-el

* 'master' of github.com:zenorocha/clipboard.js:
  refactor(workflows): remove unused lint file
  feat(workflows): add lint code job
  chore(eslint): add comments and new rules
  chore(deps): remove sort-package-json
  refactor: remove eslint ignore rules comments
  ci(lint): create a ci workflow
  chore(clipboard): remove linter bugs
  chore(deps): add dependencies and new scripts
  chore(test): remove linter bugs
  chore(linter): add linter configuration
  feat(eslint): add linter configuration
  chore(deps): add linter
  updating naming
  adding deploy action
This commit is contained in:
vitormalencar
2021-02-25 16:21:53 +01:00
8 changed files with 1076 additions and 31 deletions

View File

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