From 699e6f89c0e36d2dc79c4b8d78f94883f1e4f521 Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:18:23 +0000 Subject: [PATCH] fix something please --- tst/functions/New-MockObject.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/functions/New-MockObject.Tests.ps1 b/tst/functions/New-MockObject.Tests.ps1 index 3df6d04c3..52d27b961 100644 --- a/tst/functions/New-MockObject.Tests.ps1 +++ b/tst/functions/New-MockObject.Tests.ps1 @@ -44,7 +44,7 @@ Describe 'New-MockObject' { # Simulate a internal module class like https://github.com/pester/Pester/issues/2564 $someObj = & { class MyInternalClass { - [string] $Name + [string] $Name = 'Default' [string] GetName() { return $this.Name } } $obj = [MyInternalClass]::new()