From 2cd953297ae63939e8c91a0bb0bb5bfbd32b82da Mon Sep 17 00:00:00 2001 From: drakezhang Date: Wed, 9 Sep 2026 19:36:10 +0800 Subject: [PATCH] test(installer): check the resolved command after installation --- scripts/install-windows.test.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-windows.test.ps1 b/scripts/install-windows.test.ps1 index 190ca26..479b33f 100644 --- a/scripts/install-windows.test.ps1 +++ b/scripts/install-windows.test.ps1 @@ -233,10 +233,10 @@ try { $env:PROCESSOR_ARCHITEW6432 = $null $script:UserPath = "$targetDir;$InstallDir;$($InstallDir.ToUpperInvariant())" $env:PATH = "$targetDir;$InstallDir;$oldPath" - Assert-Equal (Get-Command bsk -CommandType Application).Source $target + Assert-Equal (Get-Command bsk).Source $target Main Assert-Equal $downloads.Count 1 - Assert-Equal (Get-Command bsk -CommandType Application).Source $installed + Assert-Equal (Get-Command bsk).Source $installed Assert-Equal $script:UserPath "$InstallDir;$targetDir" Assert-Equal (Get-FileHash -LiteralPath $installed).Hash (Get-FileHash -LiteralPath $source).Hash Assert-Equal @(Get-ChildItem -LiteralPath $fixtureTemp -Force).Count 0