Skip to content

Commit

Permalink
fix: use None result in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juev committed Dec 8, 2023
1 parent bcfeeb6 commit 6d5dbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gobrew_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func TestInteractive(t *testing.T) {
currentVersion := gb.CurrentVersion()
latestVersion := gb.getLatestVersion()
// modVersion := gb.getModVersion()
assert.Equal(t, "", currentVersion)
assert.Equal(t, "None", currentVersion)
assert.NotEqual(t, currentVersion, latestVersion)

ask := false
Expand Down Expand Up @@ -248,7 +248,7 @@ func TestPrune(t *testing.T) {
func TestGoBrew_CurrentVersion(t *testing.T) {
tempDir := t.TempDir()
gb := NewGoBrewDirectory(tempDir)
assert.Equal(t, true, gb.CurrentVersion() == "")
assert.Equal(t, true, gb.CurrentVersion() == "None")
gb.Install("1.19")
gb.Use("1.19")
assert.Equal(t, true, gb.CurrentVersion() == "1.19")
Expand Down

0 comments on commit 6d5dbb1

Please sign in to comment.