We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 351fb21 commit c7fbe02Copy full SHA for c7fbe02
1 file changed
test/git-secrets.bats
@@ -377,3 +377,24 @@ load test_helper
377
repo_run git-secrets --scan
378
[ $status -eq 1 ]
379
}
380
+
381
+@test "-d can only be used with --remove" {
382
+ repo_run git-secrets --list -d
383
+ [ $status -eq 1 ]
384
+}
385
386
+@test "-u can only be used with --remove" {
387
+ repo_run git-secrets --list -u
388
389
390
391
+@test "--remove removes added items" {
392
+ repo_run git-secrets --add "test"
393
+ [ $status -eq 0 ]
394
+ repo_run git-secrets --list
395
396
+ repo_run git-secrets --remove "test"
397
398
399
400
0 commit comments