File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ func TestRun(t *testing.T) {
117
117
name : "" ,
118
118
args : []string {"" , "--version" },
119
119
wantExitCode : 0 ,
120
- wantStdout : `
121
- osv-scanner version: 1.3.3
120
+ wantStdout : fmt . Sprintf ( `
121
+ osv-scanner version: %s
122
122
commit: n/a
123
123
built at: n/a
124
- ` ,
124
+ ` , version ),
125
125
wantStderr : "" ,
126
126
},
127
127
// one specific supported lockfile
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func (r *TableReporter) PrintText(msg string) {
39
39
40
40
func (r * TableReporter ) PrintResult (vulnResult * models.VulnerabilityResults ) error {
41
41
if len (vulnResult .Results ) == 0 && ! r .hasPrintedError {
42
- fmt .Fprintf (r .stdout , "No vulnerabilities found" )
42
+ fmt .Fprintf (r .stdout , "No vulnerabilities found\n " )
43
43
return nil
44
44
}
45
45
You can’t perform that action at this time.
0 commit comments