Skip to content

Commit

Permalink
expand the cache tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Oct 26, 2023
1 parent b27dca5 commit 05803fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ export def get-store-root [] {

export def get-repo-cache [] {
let cases = [
[env, expected];
[env, expected];

[{XDG_CACHE_HOME: null}, "~/.cache/nu-git-manager/cache.nuon"],
[{XDG_CACHE_HOME: "~/xdg"}, "~/xdg/nu-git-manager/cache.nuon"],
[{GIT_REPOS_CACHE: null, XDG_CACHE_HOME: null}, "~/.cache/nu-git-manager/cache.nuon"],
[{GIT_REPOS_CACHE: "~/my_cache", XDG_CACHE_HOME: null}, "~/my_cache"],
[{GIT_REPOS_CACHE: null, XDG_CACHE_HOME: "~/xdg"}, "~/xdg/nu-git-manager/cache.nuon"],
[{GIT_REPOS_CACHE: "~/my_cache", XDG_CACHE_HOME: "~/xdg"}, "~/my_cache"],
]

for case in $cases {
Expand Down

0 comments on commit 05803fe

Please sign in to comment.