Skip to content

Commit c810135

Browse files
committed
test: 🧪 Update mock implementation in Get-ModuleExtension tests
* 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.
1 parent 6b70d04 commit c810135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Get-ModuleExtension.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Describe 'Get-PlasterManifestPathForCulture' {
1515
InModuleScope $env:BHProjectName {
1616
BeforeEach {
1717
Mock Get-Module {
18-
Get-Content -Raw $PSScriptRoot\Fixtures\ModuleList.xml | ConvertFrom-CliXml
18+
Import-Clixml $PSScriptRoot\Fixtures\ModuleList.xml
1919
}
2020
}
2121

0 commit comments

Comments
 (0)