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:
@@ -73,7 +73,7 @@ describe('Tab.vue', () => {
|
||||
expect(wrapper.findComponent({ ref: 'chart' }).vm.visible).to.equal(true)
|
||||
})
|
||||
|
||||
it("Is not visible when not active", async () => {
|
||||
it('Is not visible when not active', async () => {
|
||||
// mock store state
|
||||
const state = {
|
||||
currentTabId: 0
|
||||
@@ -93,7 +93,7 @@ describe('Tab.vue', () => {
|
||||
expect(wrapper.find('.tab-content-container').isVisible()).to.equal(false)
|
||||
})
|
||||
|
||||
it("Calls setCurrentTab when becomes active", async () => {
|
||||
it('Calls setCurrentTab when becomes active', async () => {
|
||||
// mock store state
|
||||
const state = {
|
||||
currentTabId: 0
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('hint.js', () => {
|
||||
getCursor: sinon.stub()
|
||||
}
|
||||
|
||||
const clock = sinon.useFakeTimers();
|
||||
const clock = sinon.useFakeTimers()
|
||||
hint.show(editor)
|
||||
clock.tick(500)
|
||||
|
||||
@@ -115,7 +115,7 @@ describe('hint.js', () => {
|
||||
sinon.restore()
|
||||
})
|
||||
|
||||
it("getHints returns [ ] if there is only one option and the token is already completed with this option", () => {
|
||||
it('getHints returns [ ] if there is only one option and the token is already completed with this option', () => {
|
||||
// mock CM.hint.sql and editor
|
||||
sinon.stub(CM.hint, 'sql').returns({ list: [{ text: 'SELECT' }] })
|
||||
const editor = {
|
||||
@@ -134,9 +134,9 @@ describe('hint.js', () => {
|
||||
sinon.restore()
|
||||
})
|
||||
|
||||
it("getHints returns hints as is when there are more than one option", () => {
|
||||
it('getHints returns hints as is when there are more than one option', () => {
|
||||
// mock CM.hint.sql and editor
|
||||
let list = [
|
||||
const list = [
|
||||
{ text: 'SELECT' },
|
||||
{ text: 'ST' }
|
||||
]
|
||||
@@ -157,9 +157,9 @@ describe('hint.js', () => {
|
||||
sinon.restore()
|
||||
})
|
||||
|
||||
it("getHints returns hints as is when there only one option but the token is not cpmpleted", () => {
|
||||
it('getHints returns hints as is when there only one option but the token is not cpmpleted', () => {
|
||||
// mock CM.hint.sql and editor
|
||||
let list = [{ text: 'SELECT' }]
|
||||
const list = [{ text: 'SELECT' }]
|
||||
sinon.stub(CM.hint, 'sql').returns({ list })
|
||||
const editor = {
|
||||
getTokenAt () {
|
||||
@@ -193,7 +193,7 @@ describe('hint.js', () => {
|
||||
getCursor: sinon.stub()
|
||||
}
|
||||
|
||||
const clock = sinon.useFakeTimers();
|
||||
const clock = sinon.useFakeTimers()
|
||||
hint.show(editor)
|
||||
clock.tick(500)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user