Skip to content

Commit

Permalink
pr-fix: updated wrong test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels authored Jun 13, 2024
1 parent 0cce9f5 commit 0041cdb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ InModuleScope Arcus.Scripting.DevOps {
Context "Setting ARM outputs to Azure DevOps variable group" {
It "Setting DevOps variable should write to host" {
# Arrange
Mock Write-Host { $Object | Should -Be "##vso[task.setvariable variable=test] value" } -Verifiable
Mock Write-Host { $Object | Should -Be "##vso[task.setvariable variable=test]value" } -Verifiable

# Act
Set-AzDevOpsVariable "test" "value"
Expand All @@ -15,7 +15,7 @@ InModuleScope Arcus.Scripting.DevOps {
}
It "Setting DevOps variable as secret should write to host" {
# Arrange
Mock Write-Host { $Object | Should -Be "##vso[task.setvariable variable=test;issecret=true] value" } -Verifiable
Mock Write-Host { $Object | Should -Be "##vso[task.setvariable variable=test;issecret=true]value" } -Verifiable

# Act
Set-AzDevOpsVariable "test" "value" -AsSecret
Expand Down

0 comments on commit 0041cdb

Please sign in to comment.