diff --git a/Set-Column.ps1 b/Set-Column.ps1 index c5fb42d..6b822d3 100644 --- a/Set-Column.ps1 +++ b/Set-Column.ps1 @@ -27,7 +27,7 @@ When given a valid URI, Set-ExcelColumn makes it a hyperlink. The column will be autosized to fit the links. #> [cmdletbinding()] - [Alias(" Set-Column")] + [Alias("Set-Column")] [OutputType([OfficeOpenXml.ExcelColumn],[String])] Param ( #If specifing the worksheet by name the ExcelPackage object which contains it needs to be passed diff --git a/Set-Row.ps1 b/Set-Row.ps1 index b290dcf..af26eb8 100644 --- a/Set-Row.ps1 +++ b/Set-Row.ps1 @@ -23,7 +23,7 @@ and given a double line border above and single line border below. #> [cmdletbinding()] - [Alias(" Set-Row")] + [Alias("Set-Row")] [OutputType([OfficeOpenXml.ExcelRow],[String])] Param ( #An Excel package object - e.g. from Export-Excel -passthru - requires a sheet name diff --git a/__tests__/FunctionAlias.tests.ps1 b/__tests__/FunctionAlias.tests.ps1 new file mode 100644 index 0000000..b5d4382 --- /dev/null +++ b/__tests__/FunctionAlias.tests.ps1 @@ -0,0 +1,26 @@ +#Requires -Modules Pester +Import-Module $PSScriptRoot\..\ImportExcel.psd1 -Force + +Describe "Check if Function aliases exist" { + + It "Set-Column should exist" { + Get-Command Set-Column | Should Not Be $null + } + + It "Set-Row should exist" { + Get-Command Set-Row | Should Not Be $null + } + + It "Set-Format should exist" { + Get-Command Set-Format | Should Not Be $null + } + + It "Merge-MulipleSheets should exist" { + Get-Command Merge-MulipleSheets | Should Not Be $null + } + + It "New-ExcelChart should exist" { + Get-Command New-ExcelChart | Should Not Be $null + } + +} \ No newline at end of file