mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
lint fixes
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user