Skip to content
Permalink
Browse files

Fix linting errors

  • Loading branch information...
evanplaice committed May 3, 2019
1 parent 3532253 commit 8e06b644d181c7aa255e4e1dd1f6d3d18a6c8382
Showing with 3 additions and 3 deletions.
  1. +2 −2 test/csv.on_parse_value_hook.js
  2. +1 −1 test/csv.on_pre_parse_hook.js
@@ -39,7 +39,7 @@ test('$.csv.toObjects onParseValue hook callback - should affect return value',

test('$.csv.toObjects onParseValue hook callback - should have correct state', (t) => {
const checkValueState = (value, state) => {
if (state.rowNum === 2, state.colNum === 3) {
if (state.rowNum === 2 && state.colNum === 3) {
t.equal(value, 'some');
}
return value;
@@ -50,7 +50,7 @@ test('$.csv.toObjects onParseValue hook callback - should have correct state', (

test('$.csv.toArrays onParseValue hook callback - should have correct state', (t) => {
const checkValueState = (value, state) => {
if (state.rowNum === 1, state.colNum === 3) {
if (state.rowNum === 1 && state.colNum === 3) {
t.equal(value, 'some');
}
return value;
@@ -32,7 +32,7 @@ test('$.csv.toArrays onPreParse hook callback - should be passed the raw csv and

test('$.csv.toObjects onPreParse hook callback - should affect return value', (t) => {
const returnEmptyCSV = () => 'header\n""';
const result = csv.toObjects(fixtures.objects_csv,{ onPreParse: returnEmptyCSV });
const result = csv.toObjects(fixtures.objects_csv, { onPreParse: returnEmptyCSV });
t.deepEqual(result, [{ header: '' }], 'return value should reflect what was returned from callback');
t.end();
});

0 comments on commit 8e06b64

Please sign in to comment.
You can’t perform that action at this time.