1
0
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:
lana-k
2021-01-30 20:22:35 +01:00
parent 8eb33633e2
commit cd866fcf50

View File

@@ -18,7 +18,7 @@ describe('Schema.vue', () => {
const store = new Vuex.Store({ state })
// mout the component
const wrapper = mount(Schema, { store, localVue})
const wrapper = mount(Schema, { store, localVue })
// check DB name and schema visibility
expect(wrapper.find('.db-name').text()).to.equal('fooDB')
@@ -33,7 +33,7 @@ describe('Schema.vue', () => {
const store = new Vuex.Store({ state })
// mout the component
const wrapper = mount(Schema, { store, localVue})
const wrapper = mount(Schema, { store, localVue })
// click and check visibility
await wrapper.find('.db-name').trigger('click')
@@ -73,7 +73,7 @@ describe('Schema.vue', () => {
const store = new Vuex.Store({ state })
// mount the component
const wrapper = mount(Schema, { store, localVue})
const wrapper = mount(Schema, { store, localVue })
// apply filters and check the list of tables
await wrapper.find('#schema-filter input').setValue('foo')
@@ -125,7 +125,7 @@ describe('Schema.vue', () => {
const store = new Vuex.Store({ state, mutations })
// stub getFileFromUser
const file = { file: 'hello'}
const file = { file: 'hello' }
sinon.stub(fu, 'getFileFromUser').resolves(file)
// mock $db.loadDb()
@@ -158,7 +158,7 @@ describe('Schema.vue', () => {
sinon.spy($db, 'loadDb')
// mount the component
const wrapper = mount(Schema, { store, localVue, mocks: {$db}})
const wrapper = mount(Schema, { store, localVue, mocks: { $db } })
// trigger the event
await wrapper.find('#db-edit').trigger('click')