mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-08 02:58:54 +08:00
lint fix
This commit is contained in:
@@ -30,7 +30,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get queries from local storage
|
// Get queries from local storage
|
||||||
let myQueries = this.getStoredQueries()
|
const myQueries = this.getStoredQueries()
|
||||||
|
|
||||||
// Set createdAt
|
// Set createdAt
|
||||||
if (newName) {
|
if (newName) {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
import sinon from 'sinon'
|
||||||
import storedQueries from '@/storedQueries.js'
|
import storedQueries from '@/storedQueries.js'
|
||||||
import fu from '@/fileUtils'
|
import fu from '@/fileUtils'
|
||||||
|
|
||||||
@@ -114,7 +115,7 @@ describe('storedQueries.js', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('deserialiseQueries generates new id to avoid duplication', () => {
|
it('deserialiseQueries generates new id to avoid duplication', () => {
|
||||||
storedQueries.updateStorage([{id: 1}])
|
storedQueries.updateStorage([{ id: 1 }])
|
||||||
const str = `[
|
const str = `[
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
@@ -250,5 +251,3 @@ describe('storedQueries.js', () => {
|
|||||||
expect(new Date(queries[0].createdAt)).to.be.within(now, nowPlusMinute)
|
expect(new Date(queries[0].createdAt)).to.be.within(now, nowPlusMinute)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user