mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Convert Pester tests to ASCII
Instead of UTF-8 with BOM. Resolves #417.
This commit is contained in:
1 parent
901160cb78
commit
0aaf74bdcc
52 files changed
+648
-517
No files matched your search
@@ -1,24 +1,24 @@
|
||||
Describe "Set-Alias" {
|
||||
Mock Get-Date { return "Friday, October 30, 2015 3:38:08 PM" }
|
||||
It "Should be able to set alias without error" {
|
||||
|
||||
{ set-alias -Name gd -Value Get-Date } | Should Not Throw
|
||||
}
|
||||
|
||||
It "Should be able to have the same output between set-alias and the output of the function being aliased" {
|
||||
set-alias -Name gd -Value Get-Date
|
||||
gd | Should Be $(Get-Date)
|
||||
}
|
||||
|
||||
It "Should be able to use the sal alias" {
|
||||
{ sal gd Get-Date } | Should Not Throw
|
||||
}
|
||||
|
||||
It "Should have the same output between the sal alias and the original set-alias cmdlet" {
|
||||
sal -Name gd -Value Get-Date
|
||||
|
||||
Set-Alias -Name gd2 -Value Get-Date
|
||||
|
||||
gd2 | Should Be $(gd)
|
||||
}
|
||||
}
|
||||
Describe "Set-Alias" {
|
||||
Mock Get-Date { return "Friday, October 30, 2015 3:38:08 PM" }
|
||||
It "Should be able to set alias without error" {
|
||||
|
||||
{ set-alias -Name gd -Value Get-Date } | Should Not Throw
|
||||
}
|
||||
|
||||
It "Should be able to have the same output between set-alias and the output of the function being aliased" {
|
||||
set-alias -Name gd -Value Get-Date
|
||||
gd | Should Be $(Get-Date)
|
||||
}
|
||||
|
||||
It "Should be able to use the sal alias" {
|
||||
{ sal gd Get-Date } | Should Not Throw
|
||||
}
|
||||
|
||||
It "Should have the same output between the sal alias and the original set-alias cmdlet" {
|
||||
sal -Name gd -Value Get-Date
|
||||
|
||||
Set-Alias -Name gd2 -Value Get-Date
|
||||
|
||||
gd2 | Should Be $(gd)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user