mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
- Pester source code moved to `test/Pester`, deleted `ext-src`. - Pester tests (.ps1 files) moved to `test/powershell` - xUnit tests (.cs files) moved to `test/csharp` - Third-party script test moved to `test/shebang`
28 lines
857 B
PowerShell
28 lines
857 B
PowerShell
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
|
|
Describe "Import-Alias" {
|
|
$pesteraliasfile = "$here/assets/pesteralias.txt"
|
|
|
|
Context "Validate ability to import alias file" {
|
|
|
|
It "Should be able to import an alias file successfully" {
|
|
{ Import-Alias $pesteraliasfile } | Should Not throw
|
|
}
|
|
|
|
It "Should be able to import file via the Import-Alias alias of ipal" {
|
|
{ ipal $pesteraliasfile } | Should Not throw
|
|
}
|
|
|
|
It "Should be able to import an alias file and perform imported aliased echo cmd" {
|
|
(Import-Alias $pesteraliasfile)
|
|
(pesterecho pestertesting) | Should Be "pestertesting"
|
|
}
|
|
|
|
It "Should be able to use ipal alias to import an alias file and perform cmd" {
|
|
(ipal $pesteraliasfile)
|
|
(pesterecho pestertesting) | Should be "pestertesting"
|
|
}
|
|
|
|
}
|
|
}
|