Skip to content

Commit

Permalink
fix json tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 committed Apr 28, 2021
1 parent e0c00fa commit 90393cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions osv/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func TestGenerate(t *testing.T) {
r := report.Report{
Module: "example.com/vulnerable/v2",
AdditionalPackages: []struct {
Module string
Package string
Symbols []string
Versions []report.VersionRange
Module string `yaml:",omitempty"`
Package string `yaml:",omitempty"`
Symbols []string `yaml:",omitempty"`
Versions []report.VersionRange `yaml:",omitempty"`
}{
{
Module: "vanity.host/vulnerable",
Expand All @@ -44,9 +44,9 @@ func TestGenerate(t *testing.T) {
OS: []string{"windows"},
Arch: []string{"arm64"},
Links: struct {
PR string
Commit string
Context []string
PR string `yaml:",omitempty"`
Commit string `yaml:",omitempty"`
Context []string `yaml:",omitempty"`
}{
PR: "pr",
Commit: "commit",
Expand Down

0 comments on commit 90393cf

Please sign in to comment.