Skip to content

Commit

Permalink
test CacheDir behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalor authored Aug 9, 2023
1 parent 39c1972 commit f55e42e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ func TestDataDir(t *testing.T) {
}
}

func TestCacheDir(t *testing.T) {
expected := filepath.Join(os.TempDir(), "gh-cli-cache")
actual := CacheDir()
assert.Equal(t, expected, actual)
}

func TestLoad(t *testing.T) {
tempDir := t.TempDir()
globalFilePath := filepath.Join(tempDir, "config.yml")
Expand Down

0 comments on commit f55e42e

Please sign in to comment.