mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Merge pull request #438 from dfinke/TestFunctionAliases
Added ps1 to for testing aliases
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
26
__tests__/FunctionAlias.tests.ps1
Normal file
26
__tests__/FunctionAlias.tests.ps1
Normal 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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user