1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix lint errors

This commit is contained in:
lana-k
2021-04-11 22:19:14 +02:00
parent b2d21cc859
commit 9ce1c27cf5
3 changed files with 8 additions and 9 deletions

View File

@@ -11,8 +11,8 @@ describe('csv.js', () => {
it('getResult with fields', () => { it('getResult with fields', () => {
const source = { const source = {
data: [ data: [
{id: 1, name: 'foo'}, { id: 1, name: 'foo' },
{id: 2, name: 'bar'} { id: 2, name: 'bar' }
], ],
meta: { meta: {
fields: ['id', 'name'] fields: ['id', 'name']
@@ -65,11 +65,11 @@ describe('csv.js', () => {
row: 0 row: 0
} }
], ],
meta: { meta: {
delimiter: ',', delimiter: ',',
linebreak: '\n', linebreak: '\n',
aborted: false, aborted: false,
truncated: true truncated: true
} }
}) })
}) })
@@ -87,7 +87,6 @@ describe('csv.js', () => {
hasErrors: true, hasErrors: true,
messages: [ messages: [
{ {
type: 'Quotes',
code: 'MissingQuotes', code: 'MissingQuotes',
message: 'Quote is missed', message: 'Quote is missed',
row: 0, row: 0,
@@ -95,7 +94,6 @@ describe('csv.js', () => {
hint: 'Edit your CSV so that the field has a closing quote char.' hint: 'Edit your CSV so that the field has a closing quote char.'
}, },
{ {
type: 'Delimiter',
code: 'UndetectableDelimiter', code: 'UndetectableDelimiter',
message: 'Comma was used as a standart delimiter', message: 'Comma was used as a standart delimiter',
row: 0, row: 0,

View File

@@ -1,4 +1,5 @@
import { expect } from 'chai' import { expect } from 'chai'
import sinon from 'sinon'
import { mutations, actions } from '@/store' import { mutations, actions } from '@/store'
const { const {
saveSchema, saveSchema,