Merge pull request #438 from dfinke/TestFunctionAliases

Added ps1 to for testing aliases
This commit is contained in:
Doug Finke
2018-09-20 12:33:06 -04:00
committed by GitHub
3 changed files with 28 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
}
}