Skip to content

Commit f9e8725

Browse files
committed
chore: Fix tests
1 parent 6c7f088 commit f9e8725

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/common.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const BINS = [
1212
]
1313

1414
export const MACHINE_INSTALL_DIR = 'C:\Program Files\nu'
15-
export const USER_INSTALL_DIR = $'($nu.home-path)\AppData\Local\Programs\nu'
15+
export const USER_INSTALL_DIR = $'($nu.home-dir)\AppData\Local\Programs\nu'
1616

1717
const ASSETS = [License.rtf README.txt nu.ico bin]
1818

19-
const PROFILE = $'($nu.home-path)\AppData\Local\Microsoft\Windows Terminal\Fragments\nu\nu.json'
19+
const PROFILE = $'($nu.home-dir)\AppData\Local\Microsoft\Windows Terminal\Fragments\nu\nu.json'
2020

2121
# Run this command locally or in GitHub runners after installing nu
2222
export def check-user-install [install_dir = $USER_INSTALL_DIR: string] {

tests/test-all.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const PREV_VERSION = '0.105.0'
1111
const LAST_VERSION = '0.105.1'
1212
const MSI_PKG = 'wix\bin\x64\Release\nu-x64.msi'
1313
const PER_MACHINE_INSTALL_DIR = 'C:\Program Files\nu'
14-
const PER_USER_INSTALL_DIR = $'($nu.home-path)\AppData\Local\Programs\nu'
14+
const PER_USER_INSTALL_DIR = $'($nu.home-dir)\AppData\Local\Programs\nu'
1515
const WINGET_ARGS = [
1616
--silent
1717
--ignore-security-hash

tests/test-msi.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup [] {
1313
gh release download $release_tag --repo nushell/nightly --pattern $"*-($arch)-*.msi"
1414
let msi = ls | where name =~ msi | get name.0
1515
print $'MSI File: ($msi)'
16-
let install_dir = $'($nu.home-path)\AppData\Local\Programs\nu'
16+
let install_dir = $'($nu.home-dir)\AppData\Local\Programs\nu'
1717
{ msi: $msi, install_dir: $install_dir, release_tag: $release_tag }
1818
}
1919

tests/winget-install.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use common.nu [MACHINE_INSTALL_DIR, USER_INSTALL_DIR]
55
use common.nu [check-user-install, check-local-machine-install, check-version-match, get-latest-tag]
66

77

8-
const KOMAC_PATH = $'($nu.home-path)\AppData\Local\Programs\Komac\bin\'
8+
const KOMAC_PATH = $'($nu.home-dir)\AppData\Local\Programs\Komac\bin\'
99

1010
const WINGET_ARGS = [
1111
--silent

0 commit comments

Comments
 (0)