Skip to content

Commit

Permalink
prevent injection of version during metadata testing
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolatkey committed Feb 21, 2025
1 parent 48883e3 commit d24a115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/manifest/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
"github.com/stretchr/testify/assert"
)

func init() {
ToolkitVersionKey = "" // Prevent injection of version during testing
}

func TestMetadataUnmarshalMinimalJSON(t *testing.T) {
var m Metadata
assert.NoError(t, json.Unmarshal([]byte(`{"title": "Title"}`), &m))
Expand Down

0 comments on commit d24a115

Please sign in to comment.