mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Fix tests broken by removal of aliases
This commit is contained in:
1 parent
47a8ee5bcf
commit
2bd274f5d7
8 files changed
+17
-83
No files matched your search
@@ -1,30 +1,22 @@
|
||||
Describe "NativeLinuxCommands" {
|
||||
It "Should return a type of System.Object for hostname cmdlet" {
|
||||
(hostname).GetType().BaseType | Should Be 'System.Object'
|
||||
(hostname).GetType().Name | Should Be String
|
||||
(hostname).GetType().BaseType | Should Be 'System.Object'
|
||||
(hostname).GetType().Name | Should Be String
|
||||
}
|
||||
|
||||
It "Should have not empty Name flags set for ps object" {
|
||||
ps | foreach-object { $_.ProcessName | Should Not BeNullOrEmpty }
|
||||
Get-Process | foreach-object { $_.ProcessName | Should Not BeNullOrEmpty }
|
||||
}
|
||||
|
||||
It "Should find Application grep" -Skip:$IsWindows {
|
||||
(get-command grep).CommandType | Should Be Application
|
||||
|
||||
It "Should find Application grep" -Skip:$IsWindows {
|
||||
(get-command grep).CommandType | Should Be Application
|
||||
}
|
||||
|
||||
It "Should pipe to grep and get result" -Skip:$IsWindows {
|
||||
"hello world" | grep hello | Should Be "hello world"
|
||||
"hello world" | grep hello | Should Be "hello world"
|
||||
}
|
||||
|
||||
It "Should find Application touch" -Skip:$IsWindows {
|
||||
(get-command touch).CommandType | Should Be Application
|
||||
}
|
||||
|
||||
It "Should find Alias ls" -Skip:$IsWindows {
|
||||
(get-command ls).CommandType | Should Be Alias
|
||||
}
|
||||
|
||||
It "Should find Function mkdir" -Skip:$IsWindows {
|
||||
(get-command mkdir).CommandType | Should Be Function
|
||||
|
||||
It "Should find Application touch" -Skip:$IsWindows {
|
||||
(get-command touch).CommandType | Should Be Application
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user