diff --git a/src/utils/__tests__/ndjson.test.ts b/src/utils/__tests__/ndjson.test.ts index 5d60b56..a4251db 100644 --- a/src/utils/__tests__/ndjson.test.ts +++ b/src/utils/__tests__/ndjson.test.ts @@ -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(); - }); }); diff --git a/src/utils/ndjson.ts b/src/utils/ndjson.ts index 1a330bf..b5070be 100644 --- a/src/utils/ndjson.ts +++ b/src/utils/ndjson.ts @@ -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.