Skip to content

Commit

Permalink
Check for long arg file names
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Jun 27, 2024
1 parent e465f7d commit 44e7388
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions npm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions npm/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,10 @@ void async function main() {
const {stdout} = await runNoPipe(`.name package.json`)
t.equal(stdout, 'fx\n')
})

await test('cli - very large arg', async t => {
const {status, stderr, stdout} = await run(42, `'x => x /* dsasdfaskjdfhaskldjfhgaslkdjfhasdlkfjhasdlkfjhasdlfkjhasdflkjasdhflkjasdhflacnskdcfhalsdkfjhasldkfjhcasdlckfajhdsflbkasjdhfclnaskdjhfalskdfgjhsdflkfjhasdlfkahjsdflkasjhdflkafdggrhdfggsdfghsdghadfgsdfgsdfglhadshfglaksjdfhalskjdfhasldkfjhaldfkjhasdlfkjhasdflkjhadflkhasdlkfjhdfkhjasdlfkjhasdflkhaflkcansdfhvlkvajhfgvbalergtcqwaleifhavslbkfchasdblkfhldsfhasdfasfasdfdfdddddddadlakfjhas */'`)
t.equal(status, 0, stderr)
t.equal(stdout, '42\n')
})
}()

0 comments on commit 44e7388

Please sign in to comment.