github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/config/file_test.go (about) 1 package config_test 2 3 import ( 4 "testing" 5 6 "github.com/fossas/fossa-cli/config" 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestInitFileDoesNotWriteBranch(t *testing.T) { 11 config.MockBranch = "not-empty" 12 file := config.InitFile(nil) 13 14 assert.Empty(t, file.Branch()) 15 }