From 9ce1c27cf57aa84cf27f4a8c8afb17715ef7d30e Mon Sep 17 00:00:00 2001 From: lana-k Date: Sun, 11 Apr 2021 22:19:14 +0200 Subject: [PATCH] fix lint errors --- tests/unit/csv.spec.js | 14 ++++++-------- tests/unit/store.spec.js | 1 + tests/unit/time.spec.js | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tests/unit/csv.spec.js b/tests/unit/csv.spec.js index 89170b0..c7ed18f 100644 --- a/tests/unit/csv.spec.js +++ b/tests/unit/csv.spec.js @@ -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, diff --git a/tests/unit/store.spec.js b/tests/unit/store.spec.js index 013ee1d..f8e7e46 100644 --- a/tests/unit/store.spec.js +++ b/tests/unit/store.spec.js @@ -1,4 +1,5 @@ import { expect } from 'chai' +import sinon from 'sinon' import { mutations, actions } from '@/store' const { saveSchema, diff --git a/tests/unit/time.spec.js b/tests/unit/time.spec.js index ee84236..051d761 100644 --- a/tests/unit/time.spec.js +++ b/tests/unit/time.spec.js @@ -27,4 +27,4 @@ describe('time.js', () => { expect(time.getPeriod(start, end)).to.equal('45 ms') }) -}) \ No newline at end of file +})