Skip to content

Commit

Permalink
Update default base directories test case for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
adrg committed Oct 15, 2024
1 parent 6c0ef54 commit ab2aa4f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions paths_darwin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ func TestDefaultBaseDirs(t *testing.T) {
actual: &xdg.DataHome,
},
&envSample{
name: "XDG_DATA_DIRS",
expected: []string{rootAppSupport},
actual: &xdg.DataDirs,
name: "XDG_DATA_DIRS",
expected: []string{
rootAppSupport,
filepath.Join(home, ".local", "share"),
},
actual: &xdg.DataDirs,
},
&envSample{
name: "XDG_CONFIG_HOME",
Expand All @@ -38,6 +41,7 @@ func TestDefaultBaseDirs(t *testing.T) {
filepath.Join(home, "Library", "Preferences"),
rootAppSupport,
"/Library/Preferences",
filepath.Join(home, ".config"),
},
actual: &xdg.ConfigDirs,
},
Expand Down

0 comments on commit ab2aa4f

Please sign in to comment.