From 740d6d6b9a12fe27eeeadcd7561bc2bc74d4dcf6 Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Tue, 15 Jul 2025 15:36:39 -0700 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=A7=AA=20Update=20mock=20implemen?= =?UTF-8?q?tation=20in=20`Get-ModuleExtension`=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Changed the mock for `Get-Module` to use `Import-Clixml` for better clarity and consistency. * This improves the readability of the test setup and aligns with the expected data handling. --- tests/Get-ModuleExtension.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Get-ModuleExtension.Tests.ps1 b/tests/Get-ModuleExtension.Tests.ps1 index cdc4629..58bd272 100644 --- a/tests/Get-ModuleExtension.Tests.ps1 +++ b/tests/Get-ModuleExtension.Tests.ps1 @@ -15,7 +15,7 @@ Describe 'Get-PlasterManifestPathForCulture' { InModuleScope $env:BHProjectName { BeforeEach { Mock Get-Module { - Get-Content -Raw $PSScriptRoot\Fixtures\ModuleList.xml | ConvertFrom-CliXml + Import-Clixml $PSScriptRoot\Fixtures\ModuleList.xml } }