mirror of
https://github.com/anchore/syft.git
synced 2026-11-04 00:16:38 +01:00
feat: Allow specific versions of formats to be specified (#1543)
This commit is contained in:
@@ -15,8 +15,7 @@ import (
|
||||
|
||||
func Test_SyftJsonID_Compatibility(t *testing.T) {
|
||||
jsonMajorVersion := strings.Split(internal.JSONSchemaVersion, ".")[0]
|
||||
syftJsonIDVersion := strings.Split(string(ID), "-")[1]
|
||||
assert.Equal(t, jsonMajorVersion, syftJsonIDVersion)
|
||||
assert.Equal(t, jsonMajorVersion, string(Format().Version()))
|
||||
}
|
||||
|
||||
func Test_toSourceModel(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user