Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
20122ee0
Commit
20122ee0
authored
Jan 13, 2021
by
aniket-engg
Committed by
Aniket
Jan 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for help
parent
b001cae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
testRunner.cli.spec.ts
libs/remix-tests/tests/testRunner.cli.spec.ts
+17
-0
No files found.
libs/remix-tests/tests/testRunner.cli.spec.ts
View file @
20122ee0
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment