Skip to content

Commit

Permalink
fix Server.Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaneri committed Jan 4, 2025
1 parent fd114ef commit 1137d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/unit/Server.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ BeforeAll {
Get-ChildItem "$($src)/*.ps1" -Recurse | Resolve-Path | ForEach-Object { . $_ }
Import-LocalizedData -BindingVariable PodeLocale -BaseDirectory (Join-Path -Path $src -ChildPath 'Locales') -FileName 'Pode'

# Import Pode Assembly
$helperPath = (Split-Path -Parent -Path $path) -ireplace 'unit', 'shared'
. "$helperPath/TestHelper.ps1"
Import-PodeAssembly -SrcPath $src

$PodeContext = @{
Server = $null
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/_.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ BeforeDiscovery {
BeforeAll {
$path = $PSCommandPath
$src = (Split-Path -Parent -Path $path) -ireplace '[\\/]tests[\\/]unit', '/src/'


# Import Pode Assembly
$helperPath = (Split-Path -Parent -Path $path) -ireplace 'unit', 'shared'
. "$helperPath/TestHelper.ps1"
Import-PodeAssembly -SrcPath $src
Expand Down

0 comments on commit 1137d65

Please sign in to comment.