mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
fix lint errors
This commit is contained in:
@@ -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']
|
||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user