mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
test(installer): check the resolved command after installation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user