From ae5a84ea0594891405e766cf81ffe0941cf69ff1 Mon Sep 17 00:00:00 2001 From: Mariano Alipi <31372978+MarianoAlipi@users.noreply.github.com> Date: Mon, 8 Mar 2021 12:51:38 -0600 Subject: [PATCH] Move misplaced test file to tests directory (#14908) --- .../Microsoft.PowerShell.Core}/ImportProvider.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {src/System.Management.Automation/engine/Modules => test/powershell/Modules/Microsoft.PowerShell.Core}/ImportProvider.Tests.ps1 (93%) diff --git a/src/System.Management.Automation/engine/Modules/ImportProvider.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 similarity index 93% rename from src/System.Management.Automation/engine/Modules/ImportProvider.Tests.ps1 rename to test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 index 1bfcb84d0c..dba35c4ec5 100644 --- a/src/System.Management.Automation/engine/Modules/ImportProvider.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/ImportProvider.Tests.ps1 @@ -62,7 +62,7 @@ namespace module { } It "Import a PowerShell provider with correct name" { - $result = & $pwsh -NoProfile -Command "Import-Module -Name $testModulePath; Get-Item ReproModule\SamplePrv::test.txt" - $result.PSPath | Should -BeExactly "ReproModule\SamplePrv::test.txt" + $result = & $pwsh -NoProfile -Command "Import-Module -Name $testModulePath; (Get-Item ReproModule\SamplePrv::test.txt).PSPath" + $result | Should -BeExactly "ReproModule\SamplePrv::test.txt" } }