Skip to content

Commit a11327d

Browse files
author
Friedrich Weinmann
committed
fixing more tests
1 parent 64888b1 commit a11327d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

PSUtil/PSUtil.psd1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
'Set-PSUPathAlias'
6464
'Set-PSUPrompt'
6565
'Set-PSUShell'
66-
'Split-PSUString'
6766
'Start-PSUTimer'
6867
'Write-PSUKnowledge'
6968
)

PSUtil/functions/explorer/Backup-PSULocation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
$Levels = (Get-PSFConfigValue -FullName 'PSUtil.Path.BackupStepsDefault' -Fallback 1)
2929
)
3030

31-
Set-Location -Path (,".." * $Levels | Join-PSUString -With ([System.IO.Path]::DirectorySeparatorChar))
31+
Set-Location -Path (,".." * $Levels | Join-String -With ([System.IO.Path]::DirectorySeparatorChar))
3232
}
3333

3434
Import-PSUAlias -Name "bu" -Command "Backup-PSULocation"

PSUtil/functions/knowledge/Remove-PSUKnowledge.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
2222
Rips out the page 'DNS for Dummies' from your default book.
2323
#>
24+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseShouldProcessForStateChangingFunctions", "")]
2425
[CmdletBinding()]
2526
param (
2627
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]

PSUtil/functions/other/Select-PSUFunctionCode.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
{
9494
if ($command.ResolvedCommand.CommandType -eq "Function")
9595
{
96-
$functionText = $command.ResolvedCommand | Expand-PSUObject | Split-PSUString "`n"
96+
$functionText = $command.ResolvedCommand | Expand-PSUObject | Split-String "`n"
9797
}
9898
else
9999
{
@@ -102,7 +102,7 @@
102102
}
103103
'Function'
104104
{
105-
$functionText = $command | Expand-PSUObject | Split-PSUString "`n"
105+
$functionText = $command | Expand-PSUObject | Split-String "`n"
106106
}
107107
default
108108
{

PSUtil/tests/general/FileIntegrity.Exceptions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $global:MayContainCommand = @{
2121
"Write-Verbose" = @()
2222
"Write-Warning" = @()
2323
"Write-Error" = @()
24-
"Write-Output" = @()
24+
"Write-Output" = @('Out-PSUVariable.ps1')
2525
"Write-Information" = @()
2626
"Write-Debug" = @()
2727
}

PSUtil/tests/general/FileIntegrity.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Get-FileEncoding
3333

3434
Describe "Verifying integrity of module files" {
3535
Context "Validating PS1 Script files" {
36-
$allFiles = Get-ChildItem -Path $moduleRoot -Recurse -Filter "*.ps1" | Where-Object FullName -NotLike "$moduleRoot\tests\*"
36+
$allFiles = Get-ChildItem -Path $moduleRoot -Recurse | Where-Object Extension -eq ".ps1" | Where-Object FullName -NotLike "$moduleRoot\tests\*"
3737

3838
foreach ($file in $allFiles)
3939
{

0 commit comments

Comments
 (0)