Browse Source

chore: remove existing tests

Ryan Chandler 4 years ago
parent
commit
c9d0e7d7af
2 changed files with 0 additions and 27 deletions
  1. 0 0
      tests/.gitkeep
  2. 0 27
      tests/clipboard.spec.js

+ 0 - 0
tests/.gitkeep


+ 0 - 27
tests/clipboard.spec.js

@@ -1,27 +0,0 @@
-import AlpineClipboard from '../dist/alpine-clipboard'
-import Alpine from 'alpinejs'
-import { waitFor } from '@testing-library/dom'
-
-beforeEach(() => {
-    window.Alpine = Alpine
-})
-
-test('contents can be copied to clipboard', async () => {
-    document.execCommand = jest.fn()
-
-    document.body.innerHTML = `
-        <div x-data="{ input: '' }">
-            <button x-on:click.prevent="$clipboard(input)"></button>
-        </div>
-    `
-
-    AlpineClipboard.start()
-    
-    await Alpine.start()
-
-    document.querySelector('button').click()
-
-    await waitFor(() => {
-        expect(document.execCommand).toHaveBeenCalledWith('copy')
-    })
-})