Skip to content

Commit

Permalink
test: add imageName test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed May 13, 2021
1 parent 1bf0b1f commit 0c055d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions controllers/bus/installer_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package bus

import (
"github.com/stretchr/testify/assert"
"testing"
)

func Test_imageName(t *testing.T) {
name, err := imageName("nats:foo")
assert.NoError(t, err)
assert.Equal(t, "docker.io/nats:foo", name)
}

0 comments on commit 0c055d2

Please sign in to comment.