Skip to content

Commit

Permalink
Fix Update-SteamApp Pester test (#104)
Browse files Browse the repository at this point in the history
fix custom argument
  • Loading branch information
hjorslev committed Jul 15, 2024
1 parent 4aaa92d commit d317575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Integration/Public/Update-SteamApp.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Describe 'Update-SteamApp Tests' -Tag 'Integration' {
. "$($SteamPSModulePath)\Private\Server\Add-EnvPath.ps1"
Add-EnvPath -Path 'TestDrive:\Test\SteamCMD'

if ((Test-Path -Path "$TestDrive\Test\SteamCMD\steamcmd.exe") -eq $false) {
if ((Test-Path -Path "$TestDrive\Test\SteamCMD\steamcmd.exe") -eq $false) {
Install-SteamCMD -InstallPath 'TestDrive:\Test' -Force
}
}
Expand All @@ -20,9 +20,9 @@ Describe 'Update-SteamApp Tests' -Tag 'Integration' {
Test-Path -Path "$TestDrive\GB-AppName\GroundBranchServer.exe" | Should -BeTrue
}

It 'Passes custom argument and installs testing branch of Ground Branch Dedicated Server' {
Update-SteamApp -AppID 476400 -Path "$TestDrive\GB-TestingBranch" -Arguments "-beta testing" -Force
Test-Path -Path "$TestDrive\GB-TestingBranch\GroundBranchServer.exe" | Should -BeTrue
It 'Passes custom argument and installs prerelase branch of Counter-Strike: Source Dedicated Server' {
Update-SteamApp -AppID 232330 -Path "$TestDrive\CSS-prerelease" -Arguments "-beta prerelease" -Force
Test-Path -Path "$TestDrive\CSS-prerelease\srcds.exe" | Should -BeTrue
}
}

Expand Down

0 comments on commit d317575

Please sign in to comment.