mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-06 18:43:25 +00:00
Update Pester Syntax from V3 to V4 (V5 won't support the old version)
This commit is contained in:
@@ -6,23 +6,23 @@ if (-not (Get-command Import-Excel -ErrorAction SilentlyContinue)) {
|
||||
Describe "Check if Function aliases exist" {
|
||||
|
||||
It "Set-Column should exist".PadRight(90) {
|
||||
${Alias:Set-Column} | Should Not BeNullOrEmpty
|
||||
${Alias:Set-Column} | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "Set-Row should exist".PadRight(90) {
|
||||
${Alias:Set-Row} | Should Not BeNullOrEmpty
|
||||
${Alias:Set-Row} | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "Set-Format should exist".PadRight(90) {
|
||||
${Alias:Set-Format} | Should Not BeNullOrEmpty
|
||||
${Alias:Set-Format} | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
<#It "Merge-MulipleSheets should exist" {
|
||||
Get-Command Merge-MulipleSheets | Should Not Be $null
|
||||
Get-Command Merge-MulipleSheets | Should -Not -Be $null
|
||||
}
|
||||
#>
|
||||
It "New-ExcelChart should exist".PadRight(90) {
|
||||
${Alias:New-ExcelChart} | Should Not BeNullOrEmpty
|
||||
${Alias:New-ExcelChart} | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user