Skip to content

Commit

Permalink
Test: add test for stdin file size greater than 4096
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrie Treloar committed Sep 27, 2019
1 parent 40a2c7b commit ed18fc9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/bin/eslint.js
Expand Up @@ -163,6 +163,15 @@ describe("bin/eslint.js", () => {
return assertExitCode(child, 0);
});
});

it("successfully handles more than 4k data via stdin", () => {
const child = runESLint(["--stdin", "--no-eslintrc"]);
const large = fs.createReadStream(`${__dirname}/../bench/large.js`, "utf8");

large.pipe(child.stdin);

return assertExitCode(child, 0);
});
});

describe("running on files", () => {
Expand Down

0 comments on commit ed18fc9

Please sign in to comment.