github.com/knoebber/dotfile@v1.0.6/cli/pull_test.go (about)

     1  package cli
     2  
     3  import (
     4  	"github.com/stretchr/testify/assert"
     5  	"testing"
     6  )
     7  
     8  func TestPull(t *testing.T) {
     9  	resetTestStorage(t)
    10  	pc := &pullCommand{alias: "test"}
    11  	t.Run("returns error when config not set", func(t *testing.T) {
    12  		assert.Error(t, pc.run(nil))
    13  	})
    14  }