Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Mar 17, 2024
1 parent f5e4cb0 commit dd5a1ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/utils/__tests__/ndjson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,4 @@ describe('parseJsonLine', () => {
'Line 99999 not found in file'
);
});

it('parses a single line from file', async () => {
expect(await parseJsonLine(fixture('stats-brent.json'), 1)).toBeObject();
});

it('parses a single line from file, with large data', async () => {
expect(await parseJsonLine(fixture('stats-brent.json'), 2)).toBeArray();
});
});
2 changes: 1 addition & 1 deletion src/utils/ndjson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import events from 'events';
import fs from 'fs';
import readline from 'readline';
import stream from 'stream';
import { stringer } from 'stream-json/Stringer';
import { disassembler } from 'stream-json/Disassembler';
import { stringer } from 'stream-json/Stringer';

/**
* Iterate through lines of a ndjson/jsonl file using streams.
Expand Down

0 comments on commit dd5a1ee

Please sign in to comment.