Skip to content

Commit

Permalink
TestGetExcludePattern - dist
Browse files Browse the repository at this point in the history
  • Loading branch information
hadarshjfrog committed Nov 27, 2024
1 parent f18b500 commit 12f1ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/audit/sca/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestGetExcludePattern(t *testing.T) {
{
name: "Test no exclude pattern recursive",
params: func() *utils.AuditBasicParams { return (&utils.AuditBasicParams{}).SetIsRecursiveScan(true) },
expected: "(^.*\\.git.*$)|(^.*node_modules.*$)|(^.*target.*$)|(^.*venv.*$)|(^.*test.*$)",
expected: "(^.*\\.git.*$)|(^.*node_modules.*$)|(^.*target.*$)|(^.*venv.*$)|(^.*test.*$)|(^dist$)",
},
{
name: "Test exclude pattern not recursive",
Expand All @@ -50,7 +50,7 @@ func TestGetExcludePattern(t *testing.T) {
{
name: "Test no exclude pattern",
params: func() *utils.AuditBasicParams { return &utils.AuditBasicParams{} },
expected: "(^.*\\.git.*$)|(^.*node_modules.*$)|(^.*target.*$)|(^.*venv.*$)|(^.*test.*$)",
expected: "(^.*\\.git.*$)|(^.*node_modules.*$)|(^.*target.*$)|(^.*venv.*$)|(^.*test.*$)|(^dist$)",
},
}

Expand Down

0 comments on commit 12f1ae6

Please sign in to comment.