diff --git a/PSGSuite/Public/Docs/New-GSDocument.ps1 b/PSGSuite/Public/Docs/New-GSDocument.ps1 index 2c6450be..01493ef3 100644 --- a/PSGSuite/Public/Docs/New-GSDocument.ps1 +++ b/PSGSuite/Public/Docs/New-GSDocument.ps1 @@ -54,7 +54,7 @@ function New-GSDocument { try { $body = New-Object 'Google.Apis.Docs.v1.Data.Document' $body.Title = $Title - if (!$Title) { + if (-not $Title) { $Title = "Untitled document" } Write-Verbose "Creating Document '$Title' for user '$User'" diff --git a/PSGSuite/Public/Sheets/Import-GSSheet.ps1 b/PSGSuite/Public/Sheets/Import-GSSheet.ps1 index 4034019c..24264d09 100644 --- a/PSGSuite/Public/Sheets/Import-GSSheet.ps1 +++ b/PSGSuite/Public/Sheets/Import-GSSheet.ps1 @@ -94,7 +94,7 @@ function Import-GSSheet { .NOTES SheetName and Range are how the API determines which sheet (or "tab") to pull data from. - Specifying just a SheetName is the simplest option, most closely replicationg the behavior of Import-CSV, and should work in most cases. + Specifying just a SheetName is the simplest option, most closely replicating the behavior of Import-CSV, and should work in most cases. If you have some knowledge of how the Sheets API works under the hood, you can additionally use Range to specify which cells on that sheet you return. For advanced use cases, you can construct a valid Range query yourself and pass that directly, in either A1 notation or R1C1 notation. diff --git a/PSGSuite/Public/Sheets/New-GSSheet.ps1 b/PSGSuite/Public/Sheets/New-GSSheet.ps1 index 28539007..85fd8d0f 100644 --- a/PSGSuite/Public/Sheets/New-GSSheet.ps1 +++ b/PSGSuite/Public/Sheets/New-GSSheet.ps1 @@ -55,7 +55,7 @@ function New-GSSheet { $body.Properties = New-Object 'Google.Apis.Sheets.v4.Data.SpreadsheetProperties' -Property @{ Title = $Title } - if (!$Title) { + if (-not $Title) { $Title = "Untitled spreadsheet" } Write-Verbose "Creating Spreadsheet '$Title' for user '$User'" diff --git a/PSGSuite/Public/Slides/New-GSPresentation.ps1 b/PSGSuite/Public/Slides/New-GSPresentation.ps1 index d225f151..fdd48b7a 100644 --- a/PSGSuite/Public/Slides/New-GSPresentation.ps1 +++ b/PSGSuite/Public/Slides/New-GSPresentation.ps1 @@ -54,7 +54,7 @@ function New-GSPresentation { try { $body = New-Object 'Google.Apis.Slides.v1.Data.Presentation' $body.Title = $Title - if (!$Title) { + if (-not $Title) { $Title = "Untitled presentation" } Write-Verbose "Creating Presentation '$Title' for user '$User'" diff --git a/Tests/1. Module Tests/PSGSuite.Help.Tests.ps1 b/Tests/1. Module Tests/PSGSuite.Help.Tests.ps1 index ff862563..74623573 100644 --- a/Tests/1. Module Tests/PSGSuite.Help.Tests.ps1 +++ b/Tests/1. Module Tests/PSGSuite.Help.Tests.ps1 @@ -7,15 +7,15 @@ Describe "Public Function Help tests" { # Adapted from Francois' post here: https://lazywinadmin.com/2016/05/using-pester-to-test-your-comment-based.html Import-Module "$TargetModulePath\$($ModuleName).psd1" -Force -ErrorAction SilentlyContinue # Make sure the assemblies are present in the current scope otherwise function help will fail - $dllFolder = if ($PSVersionTable.PSVersion.Major -le 5) { - [System.IO.Path]::Combine($TargetModulePath,'lib','net45') - } - else { - [System.IO.Path]::Combine($TargetModulePath,'lib','netstandard1.3') - } - Get-ChildItem $dllFolder -Filter '*.dll' -Recurse | ForEach-Object { - Add-Type -Path $_.FullName -IgnoreWarnings - } + # $dllFolder = if ($PSVersionTable.PSVersion.Major -le 5) { + # [System.IO.Path]::Combine($TargetModulePath,'lib','net45') + # } + # else { + # [System.IO.Path]::Combine($TargetModulePath,'lib','netstandard1.3') + # } + # Get-ChildItem $dllFolder -Filter '*.dll' -Recurse | ForEach-Object { + # Add-Type -Path $_.FullName -IgnoreWarnings + # } $FunctionsList = (Get-Module $ModuleName).ExportedFunctions.Keys foreach ($Function in $FunctionsList) { $Help = Get-Help -Name $Function -Full