mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Clean up temp files in pester scripts
This commit is contained in:
1 parent
363c0ccfd1
commit
cb6d7011d9
4 files changed
+14
-1
No files matched your search
@@ -104,6 +104,10 @@
|
||||
New-Item $testInputFile -Itemtype "file" -Force -Value "This is a text string, and another string${nl}This is the second line${nl}This is the third line${nl}This is the fourth line${nl}No matches"
|
||||
}
|
||||
|
||||
AfterEach {
|
||||
Remove-Item $testInputFile -Force
|
||||
}
|
||||
|
||||
It "Should return an object when a match is found is the file on only one line" {
|
||||
(Select-String $testInputFile -Pattern "string").GetType().BaseType | Should be System.Object
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user