Skip to content

Commit 3c5938f

Browse files
committed
Fix tests and test output
1 parent 6cb628e commit 3c5938f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
node-version-file: .nvmrc
4343
- name: Install Node dependencies
4444
run: npm ci
45-
- run: node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.txt
45+
- run: node --test --experimental-test-coverage --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=lcov.txt
4646
- uses: codecov/codecov-action@v4
4747
with:
4848
token: ${{ secrets.CODECOV_TOKEN }}

tests/__tests__/s3file.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ describe('S3FileInput', () => {
4141
})
4242

4343
test('changeHandler', () => {
44+
const form = document.createElement('form')
4445
const input = new s3file.S3FileInput()
4546
input.keys = ['key']
4647
input.upload = 'upload'
48+
form.appendChild(input)
4749
input.changeHandler()
4850
assert(!input.keys.length)
4951
assert(!input.upload)

0 commit comments

Comments
 (0)