mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 07:43:23 +00:00
Fixed the bug "Unable to find type [PSPlot]"
Also added a test for it in ImportExcel.Tests.ps1
The previous fix was broke again by commit:
bd40cfe829 (diff-f50d26003c0baf98f417a44fc1cac92b)
This commit is contained in:
@@ -2070,4 +2070,15 @@ Context 'special cases' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Context 'General Tests' {
|
||||||
|
in $TestDrive {
|
||||||
|
Describe 'Get Help' {
|
||||||
|
it 'New-Plot' {
|
||||||
|
#Get-Help : Unable to find type [PSPlot].
|
||||||
|
{Help New-Plot} | Should -Not -Throw
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,6 @@ if ($PSVersionTable.PSVersion.Major -ge 5) {
|
|||||||
. $PSScriptRoot\Plot.ps1
|
. $PSScriptRoot\Plot.ps1
|
||||||
|
|
||||||
Function New-Plot {
|
Function New-Plot {
|
||||||
[OutputType([PSPlot])]
|
|
||||||
Param()
|
Param()
|
||||||
|
|
||||||
[PSPlot]::new()
|
[PSPlot]::new()
|
||||||
|
|||||||
Reference in New Issue
Block a user