Skip to content

Commit

Permalink
(#3315) Update tests to match output
Browse files Browse the repository at this point in the history
As part of the work that was completed for this issue, the output was
changed from:

  Software installed to

to:

  Deployed to

This commit updates the assertion to make this match.
  • Loading branch information
gep13 committed May 21, 2024
1 parent 3727152 commit a547371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/pester-tests/commands/choco-install.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ To install a local, or remote file, you may use:
}

It "Outputs installation to the correct location" {
$Output.Lines | Should -Contain "Software installed to '$($env:ChocolateyInstall)\lib\$PackageUnderTest'"
$Output.Lines | Should -Contain "Deployed to '$($env:ChocolateyInstall)\lib\$PackageUnderTest'"
}
}

Expand Down Expand Up @@ -1615,7 +1615,7 @@ To install a local, or remote file, you may use:
}

It 'Outputs software installation directory' {
$Output.Lines | Should -Contain "Software installed to '$env:ChocolateyInstall\lib\install-chocolateyzip\tools'" -Because $Output.String
$Output.Lines | Should -Contain "Deployed to '$env:ChocolateyInstall\lib\install-chocolateyzip\tools'" -Because $Output.String
}

It 'Should have cached installed directory in custom cache' {
Expand Down
2 changes: 1 addition & 1 deletion tests/pester-tests/commands/choco-upgrade.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ To upgrade a local, or remote file, you may use:
}

It 'Outputs software installation directory' {
$Output.Lines | Should -Contain "Software installed to '$env:ChocolateyInstall\lib\install-chocolateyzip\tools'" -Because $Output.String
$Output.Lines | Should -Contain "Deployed to '$env:ChocolateyInstall\lib\install-chocolateyzip\tools'" -Because $Output.String
}

It 'Should have cached installed directory in custom cache' {
Expand Down

0 comments on commit a547371

Please sign in to comment.