Skip to content

Commit

Permalink
Fix tests and test output
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Nov 11, 2024
1 parent 6cb628e commit 3c5938f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
node-version-file: .nvmrc
- name: Install Node dependencies
run: npm ci
- run: node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.txt
- run: node --test --experimental-test-coverage --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=lcov.txt
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions tests/__tests__/s3file.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ describe('S3FileInput', () => {
})

test('changeHandler', () => {
const form = document.createElement('form')
const input = new s3file.S3FileInput()
input.keys = ['key']
input.upload = 'upload'
form.appendChild(input)
input.changeHandler()
assert(!input.keys.length)
assert(!input.upload)
Expand Down

0 comments on commit 3c5938f

Please sign in to comment.