Commit 20122ee0 authored by aniket-engg's avatar aniket-engg Committed by Aniket

test for help

parent b001cae5
...@@ -16,5 +16,21 @@ describe('testRunner: remix-tests CLI', () => { ...@@ -16,5 +16,21 @@ describe('testRunner: remix-tests CLI', () => {
const res = spawnSync(executablePath, ['-V']) const res = spawnSync(executablePath, ['-V'])
expect(res.stdout.toString().trim()).toBe(require('../package.json').version) expect(res.stdout.toString().trim()).toBe(require('../package.json').version)
}) })
test('remix-tests help', () => {
const res = spawnSync(executablePath, ['-h'])
console.log('res---->', res.stdout.toString().trim())
const expectedHelp = `Usage: remix-tests [options] [command]
Options:
-V, --version output the version number
-v, --verbose <level> run with verbosity
-h, --help output usage information
Commands:
version output the version number
help output usage information`
expect(res.stdout.toString().trim()).toBe(expectedHelp)
})
}) })
}) })
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment