From ab2aa4f002c5050c8193d9fc9a80815a20a01b7f Mon Sep 17 00:00:00 2001 From: Adrian-George Bostan Date: Tue, 15 Oct 2024 12:04:12 +0300 Subject: [PATCH] Update default base directories test case for macOS --- paths_darwin_test.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/paths_darwin_test.go b/paths_darwin_test.go index 95b1222..6be5046 100644 --- a/paths_darwin_test.go +++ b/paths_darwin_test.go @@ -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", @@ -38,6 +41,7 @@ func TestDefaultBaseDirs(t *testing.T) { filepath.Join(home, "Library", "Preferences"), rootAppSupport, "/Library/Preferences", + filepath.Join(home, ".config"), }, actual: &xdg.ConfigDirs, },