Skip to content

Commit 8e06b64

Browse files
committed
Fix linting errors
1 parent 3532253 commit 8e06b64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/csv.on_parse_value_hook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test('$.csv.toObjects onParseValue hook callback - should affect return value',
3939

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

5151
test('$.csv.toArrays onParseValue hook callback - should have correct state', (t) => {
5252
const checkValueState = (value, state) => {
53-
if (state.rowNum === 1, state.colNum === 3) {
53+
if (state.rowNum === 1 && state.colNum === 3) {
5454
t.equal(value, 'some');
5555
}
5656
return value;

test/csv.on_pre_parse_hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test('$.csv.toArrays onPreParse hook callback - should be passed the raw csv and
3232

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

0 commit comments

Comments
 (0)