Skip to content

Commit 681782c

Browse files
committed
Fixed PowerShell 5 tests πŸ§ͺ
1 parent 5438a58 commit 681782c

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

β€ŽRubrik/Rubrik.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Jaap Brasser
55
#
6-
# Generated on: 2021/01/05
6+
# Generated on: 2021/07/05
77
#
88

99
@{
@@ -356,7 +356,7 @@
356356

357357
# Prerelease string of this module
358358

359-
Prerelease = 'RC3'
359+
Prerelease = 'RC4'
360360

361361
# Flag to indicate whether the module requires explicit user acceptance for install/update
362362
# RequireLicenseAcceptance = $false

β€ŽTests/Test-UnicodeInString.Tests.ps1

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,28 @@ Describe -Name 'Public/Test-UnicodeInString' -Tag 'Public', 'Test-UnicodeInStrin
2424
Test-UnicodeInString -String $null |
2525
Should -Be $false
2626
}
27-
It -Name 'String param with "AbCdE12345!@#$%" should return $false' -Test {
28-
Test-UnicodeInString -String "AbCdE12345!@#$%" |
27+
28+
$String = @'
29+
AbCdE12345!@#$%
30+
'@
31+
It -Name "String param with '$String' should return `$false" -Test {
32+
Test-UnicodeInString -String $String |
2933
Should -Be $false
3034
}
31-
It -Name 'String param "γŠγ―γ‚ˆγ†ζ—₯本" should return $true' -Test {
32-
Test-UnicodeInString -String "γŠγ―γ‚ˆγ†ζ—₯本" |
35+
36+
$String = @'
37+
γŠγ―γ‚ˆγ†ζ—₯本
38+
'@
39+
It -Name "String param with '$String' should return `$true" -Test {
40+
Test-UnicodeInString -String $String |
3341
Should -Be $true
3442
}
35-
It -Name 'String param "🦏 πŸ¦‘ πŸ¦– πŸ¦“ πŸ¦‹ 🦁" should return $true' -Test {
36-
Test-UnicodeInString -String "🦏 πŸ¦‘ πŸ¦– πŸ¦“ πŸ¦‹ 🦁" |
43+
44+
$String = @'
45+
🦏 πŸ¦‘ πŸ¦– πŸ¦“ πŸ¦‹ 🦁
46+
'@
47+
It -Name "String param with '$String' should return `$true" -Test {
48+
Test-UnicodeInString -String $String |
3749
Should -Be $true
3850
}
3951
}

0 commit comments

Comments
Β (0)