Skip to content

Commit

Permalink
Small test update
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Nov 26, 2019
1 parent e4e670e commit b19d75f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PSWriteHTML.AzurePipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.\PSWriteHTML.Tests.ps1
displayName: "Run Pester Tests - PowerShell 5"
# - script: |
# pwsh -c '.\PSBlackListChecker.Tests.ps1' $(TEAMSPESTERID) $(SLACKPESTERID) $(DISCORDURL)
# pwsh -c '.\PSWriteHTML.Tests.ps1'
# displayName: "Run Pester Tests - PowerShell 6+"

- job: Build_PSCore_Ubuntu1604
Expand Down
4 changes: 2 additions & 2 deletions Tests/New-HTML.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
}
It 'Given New-HTML with wrong path it should create HTML file in temporary location' {
$FilePath = "C:\TemporaryTest.html"
$FilePath = "Z:\Windows"
New-HTML {

} -FilePath $FilePath -WarningVariable Warnings -WarningAction SilentlyContinue
Expand All @@ -25,7 +25,7 @@
$secondString = "$"
$pattern = "$firstString(.*?)$secondString"
$result = [regex]::Match($Warnings[1], $pattern).Groups[1].Value
Write-host $result
#Write-host $result
$PathExists = ($result -and (Test-Path -LiteralPath $result))
$PathExists | Should -Be $True
if ($PathExists) {
Expand Down

0 comments on commit b19d75f

Please sign in to comment.