Skip to content

Commit 0e41982

Browse files
committed
Fix deadgrep--arguments test for "--hidden" and "--glob=!/.git"
1 parent 1a82d20 commit 0e41982

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/deadgrep-unit-test.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,17 @@ edit mode."
464464
(ert-deftest deadgrep--arguments ()
465465
(should
466466
(equal (deadgrep--arguments "foo" 'regexp 'smart nil)
467-
'("--no-config" "--color=ansi" "--line-number" "--no-heading" "--no-column" "--with-filename" "--smart-case" "--" "foo" ".")))
467+
'("--no-config" "--color=ansi" "--line-number" "--no-heading" "--no-column" "--with-filename" "--smart-case" "--hidden" "--glob=!/.git" "--" "foo" ".")))
468468

469469
(let ((deadgrep--file-type '(type . "elisp")))
470470
(should
471471
(equal (deadgrep--arguments "foo" 'string 'sensitive '(1 . 0))
472-
'("--no-config" "--color=ansi" "--line-number" "--no-heading" "--no-column" "--with-filename" "--fixed-strings" "--case-sensitive" "--type=elisp" "--before-context=1" "--after-context=0" "--" "foo" "."))))
472+
'("--no-config" "--color=ansi" "--line-number" "--no-heading" "--no-column" "--with-filename" "--fixed-strings" "--case-sensitive" "--type=elisp" "--before-context=1" "--after-context=0" "--hidden" "--glob=!/.git" "--" "foo" "."))))
473473

474474
(let ((deadgrep--file-type '(glob . "*.el")))
475475
(should
476476
(equal (deadgrep--arguments "foo" 'words 'ignore '(3 . 2))
477-
'("--no-config" "--color=ansi" "--line-number" "--no-heading" "--no-column" "--with-filename" "--fixed-strings" "--word-regexp" "--ignore-case" "--glob=*.el" "--before-context=3" "--after-context=2" "--" "foo" ".")))))
477+
'("--no-config" "--color=ansi" "--line-number" "--no-heading" "--no-column" "--with-filename" "--fixed-strings" "--word-regexp" "--ignore-case" "--glob=*.el" "--before-context=3" "--after-context=2" "--hidden" "--glob=!/.git" "--" "foo" ".")))))
478478

479479
(ert-deftest deadgrep--arguments-error-cases ()
480480
(should-error

0 commit comments

Comments
 (0)