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

lint fixes

This commit is contained in:
lana-k
2021-02-11 16:53:24 +01:00
parent f6c7c9283e
commit 9a7dca3482
2 changed files with 3 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ describe('Tab.vue', () => {
const store = new Vuex.Store({ state, mutations }) const store = new Vuex.Store({ state, mutations })
const $db = { const $db = {
execute () { return Promise.reject('There is no table foo') } execute () { return Promise.reject(new Error('There is no table foo')) }
} }
// mount the component // mount the component
const wrapper = mount(Tab, { const wrapper = mount(Tab, {
@@ -204,7 +204,7 @@ describe('Tab.vue', () => {
expect(wrapper.find('.table-view .result-before').isVisible()).to.equal(false) expect(wrapper.find('.table-view .result-before').isVisible()).to.equal(false)
expect(wrapper.find('.table-view .result-in-progress').isVisible()).to.equal(false) expect(wrapper.find('.table-view .result-in-progress').isVisible()).to.equal(false)
expect(wrapper.find('.table-preview.error').isVisible()).to.equal(true) expect(wrapper.find('.table-preview.error').isVisible()).to.equal(true)
expect(wrapper.find('.table-preview.error').text()).to.equal('There is no table foo') expect(wrapper.find('.table-preview.error').text()).to.include('There is no table foo')
}) })
it('Passes result to sql-table component', async () => { it('Passes result to sql-table component', async () => {

View File

@@ -1,7 +1,7 @@
import { expect } from 'chai' import { expect } from 'chai'
import sinon from 'sinon' import sinon from 'sinon'
import { state } from '@/store' import { state } from '@/store'
import { default as hint, getHints } from '@/hint' import hint, { getHints } from '@/hint'
import CM from 'codemirror' import CM from 'codemirror'
describe('hint.js', () => { describe('hint.js', () => {