mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 10:08:52 +08:00
fix lint errors
This commit is contained in:
@@ -11,8 +11,8 @@ describe('csv.js', () => {
|
||||
it('getResult with fields', () => {
|
||||
const source = {
|
||||
data: [
|
||||
{id: 1, name: 'foo'},
|
||||
{id: 2, name: 'bar'}
|
||||
{ id: 1, name: 'foo' },
|
||||
{ id: 2, name: 'bar' }
|
||||
],
|
||||
meta: {
|
||||
fields: ['id', 'name']
|
||||
@@ -65,11 +65,11 @@ describe('csv.js', () => {
|
||||
row: 0
|
||||
}
|
||||
],
|
||||
meta: {
|
||||
meta: {
|
||||
delimiter: ',',
|
||||
linebreak: '\n',
|
||||
aborted: false,
|
||||
truncated: true
|
||||
linebreak: '\n',
|
||||
aborted: false,
|
||||
truncated: true
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -87,7 +87,6 @@ describe('csv.js', () => {
|
||||
hasErrors: true,
|
||||
messages: [
|
||||
{
|
||||
type: 'Quotes',
|
||||
code: 'MissingQuotes',
|
||||
message: 'Quote is missed',
|
||||
row: 0,
|
||||
@@ -95,7 +94,6 @@ describe('csv.js', () => {
|
||||
hint: 'Edit your CSV so that the field has a closing quote char.'
|
||||
},
|
||||
{
|
||||
type: 'Delimiter',
|
||||
code: 'UndetectableDelimiter',
|
||||
message: 'Comma was used as a standart delimiter',
|
||||
row: 0,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { expect } from 'chai'
|
||||
import sinon from 'sinon'
|
||||
import { mutations, actions } from '@/store'
|
||||
const {
|
||||
saveSchema,
|
||||
|
||||
@@ -27,4 +27,4 @@ describe('time.js', () => {
|
||||
|
||||
expect(time.getPeriod(start, end)).to.equal('45 ms')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user