Skip to content

Commit

Permalink
fix Helpers test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaneri committed Jan 5, 2025
1 parent ef44d0b commit b44eeaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Public/Core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
.PARAMETER IgnoreServerConfig
Prevents the server from loading settings from the server.psd1 configuration file.
.PARAMETER ConfigFile
.PARAMETER ConfigFile
Specifies a custom configuration file instead of using the default `server.psd1`.
.PARAMETER Daemon
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Helpers.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ Describe 'Get-PodeRelativePath' {
}

It 'Returns path for a relative path joined to default root normalized' {
Get-PodeRelativePath -Path './path' -JoinRoot -NormalisePath | Should -Be 'c:/path'
Get-PodeRelativePath -Path './path' -JoinRoot -NormalisePath | Should -Be (Join-Path -Path 'c:' -ChildPath 'path')
}

It 'Returns resolved path for a relative path joined to default root when resolving' {
Expand All @@ -1080,7 +1080,7 @@ Describe 'Get-PodeRelativePath' {
}

It 'Returns path for a relative path joined to passed root normalized' {
Get-PodeRelativePath -Path './path' -JoinRoot -RootPath 'e:/' -NormalisePath | Should -Be 'e:/path'
Get-PodeRelativePath -Path './path' -JoinRoot -RootPath 'e:/' -NormalisePath | Should -Be (Join-Path -Path 'e:' -ChildPath 'path')
}

It 'Throws error for path ot existing' {
Expand Down

0 comments on commit b44eeaf

Please sign in to comment.