mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
fix lint errors
This commit is contained in:
@@ -2,7 +2,6 @@ import { expect } from 'chai'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import LoadingIndicator from '@/components/LoadingIndicator.vue'
|
||||
|
||||
let place
|
||||
describe('LoadingIndicator.vue', () => {
|
||||
it('Calculates animation class', async () => {
|
||||
const wrapper = shallowMount(LoadingIndicator, {
|
||||
|
||||
@@ -93,17 +93,17 @@ describe('fileUtils.js', () => {
|
||||
const buffer = await fu.readAsArrayBuffer(blob)
|
||||
|
||||
const uint8Array = new Uint8Array(buffer)
|
||||
const text = new TextDecoder().decode(uint8Array)
|
||||
const text = new TextDecoder().decode(uint8Array)
|
||||
expect(text).to.equal('foo')
|
||||
})
|
||||
|
||||
it('readAsArrayBuffer rejects', async () => {
|
||||
const r = new FileReader()
|
||||
r.readAsArrayBuffer = () => {
|
||||
r.dispatchEvent(new Event('error'), )
|
||||
r.dispatchEvent(new Event('error'))
|
||||
}
|
||||
sinon.stub(window, 'FileReader').returns(r)
|
||||
|
||||
|
||||
const blob = new Blob(['foo'])
|
||||
await expect(fu.readAsArrayBuffer(blob)).to.be.rejectedWith('Problem parsing input file.')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user