Skip to content

Commit

Permalink
fix none in files
Browse files Browse the repository at this point in the history
Signed-off-by: tomersein <[email protected]>
  • Loading branch information
tomersein committed Aug 17, 2024
1 parent e4c4766 commit 9166df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syft/cataloging/filecataloging/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ func TestConfig_MarshalJSON(t *testing.T) {
{
name: "converts hashers to strings",
cfg: Config{
Enabled: true,
Selection: file.FilesOwnedByPackageSelection,
Hashers: []crypto.Hash{crypto.SHA256},
},
want: []byte(`{"selection":"owned-by-package","hashers":["sha-256"],"content":{"globs":null,"skip-files-above-size":0}}`),
want: []byte(`{"enabled":true,"selection":"owned-by-package","hashers":["sha-256"],"content":{"globs":null,"skip-files-above-size":0}}`),
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 9166df5

Please sign in to comment.