From 9166df5e6b8e355666229054c0d6e16b2d32c731 Mon Sep 17 00:00:00 2001 From: tomersein Date: Sat, 17 Aug 2024 14:16:45 +0300 Subject: [PATCH] fix none in files Signed-off-by: tomersein --- syft/cataloging/filecataloging/config_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syft/cataloging/filecataloging/config_test.go b/syft/cataloging/filecataloging/config_test.go index ca62dccb1a1..0116320fc47 100644 --- a/syft/cataloging/filecataloging/config_test.go +++ b/syft/cataloging/filecataloging/config_test.go @@ -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 {