Skip to content

Commit d989587

Browse files
committed
test(cmd): fix integration tests for lstn in
Signed-off-by: Leonardo Di Donato <[email protected]>
1 parent 9a4f4d5 commit d989587

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmd/commands_integration_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ func TestChildCommands(t *testing.T) {
4646
name: "lstn in",
4747
cmdline: []string{"in"},
4848
stdout: "",
49-
stderr: "Running without a configuration file\nError: directory _CWD_ does not contain a package.json file\n",
50-
errstr: "directory _CWD_ does not contain a package.json file",
49+
stderr: "Running without a configuration file\nError: directory _CWD_ does not contain the package-lock.json file\n",
50+
errstr: "directory _CWD_ does not contain the package-lock.json file",
5151
},
5252
// lstn to
5353
{
@@ -266,7 +266,8 @@ Examples:
266266
lstn in sub/dir
267267
268268
Flags:
269-
--json output the verdicts (if any) in JSON form
269+
--genlock whether to generate the lock file on the fly or not
270+
--json output the verdicts (if any) in JSON form
270271
271272
Config Flags:
272273
--endpoint string the listen.dev endpoint emitting the verdicts (default "https://npm.listen.dev")
@@ -299,6 +300,7 @@ Global Flags:
299300
stdout: heredoc.Doc(`{
300301
"debug-options": true,
301302
"endpoint": "https://npm.listen.dev",
303+
"genlock": false,
302304
"gh-owner": "",
303305
"gh-pull-id": 0,
304306
"gh-repo": "",
@@ -331,6 +333,7 @@ Global Flags:
331333
stdout: heredoc.Doc(`{
332334
"debug-options": true,
333335
"endpoint": "https://npm.listen.dev",
336+
"genlock": false,
334337
"gh-owner": "",
335338
"gh-pull-id": 0,
336339
"gh-repo": "",
@@ -363,6 +366,7 @@ Global Flags:
363366
stdout: heredoc.Doc(`{
364367
"debug-options": true,
365368
"endpoint": "https://npm-staging.listen.dev",
369+
"genlock": false,
366370
"gh-owner": "",
367371
"gh-pull-id": 0,
368372
"gh-repo": "",

0 commit comments

Comments
 (0)