1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

fix lint errors

This commit is contained in:
lana-k
2021-04-12 18:25:21 +02:00
parent 5db8376f95
commit 5ba371e339
2 changed files with 3 additions and 4 deletions

View File

@@ -2,7 +2,6 @@ import { expect } from 'chai'
import { shallowMount } from '@vue/test-utils' import { shallowMount } from '@vue/test-utils'
import LoadingIndicator from '@/components/LoadingIndicator.vue' import LoadingIndicator from '@/components/LoadingIndicator.vue'
let place
describe('LoadingIndicator.vue', () => { describe('LoadingIndicator.vue', () => {
it('Calculates animation class', async () => { it('Calculates animation class', async () => {
const wrapper = shallowMount(LoadingIndicator, { const wrapper = shallowMount(LoadingIndicator, {

View File

@@ -93,17 +93,17 @@ describe('fileUtils.js', () => {
const buffer = await fu.readAsArrayBuffer(blob) const buffer = await fu.readAsArrayBuffer(blob)
const uint8Array = new Uint8Array(buffer) const uint8Array = new Uint8Array(buffer)
const text = new TextDecoder().decode(uint8Array) const text = new TextDecoder().decode(uint8Array)
expect(text).to.equal('foo') expect(text).to.equal('foo')
}) })
it('readAsArrayBuffer rejects', async () => { it('readAsArrayBuffer rejects', async () => {
const r = new FileReader() const r = new FileReader()
r.readAsArrayBuffer = () => { r.readAsArrayBuffer = () => {
r.dispatchEvent(new Event('error'), ) r.dispatchEvent(new Event('error'))
} }
sinon.stub(window, 'FileReader').returns(r) sinon.stub(window, 'FileReader').returns(r)
const blob = new Blob(['foo']) const blob = new Blob(['foo'])
await expect(fu.readAsArrayBuffer(blob)).to.be.rejectedWith('Problem parsing input file.') await expect(fu.readAsArrayBuffer(blob)).to.be.rejectedWith('Problem parsing input file.')
}) })