Advertisement
cyberfunk_future

confusion about pester

Feb 23rd, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function test-PesterPipelineIssue ($filePath) {
  2.     Get-ChildItem /Users/ | Out-File $filePath
  3.     $list = Get-Content $filePath
  4.     return $list
  5. }
  6.  
  7. describe "test-PesterPipelineIssue" {
  8.     context "running into weird issues with pester statements"  {
  9.         It "given a list of things on the left hand side right hand side should populate"{
  10.             test-PesterPipelineIssue /Users/me/testingDir/testPester.txt | Should beNullOrEmpty
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement