-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Example
- Loading branch information
StartAutomating
authored and
StartAutomating
committed
Mar 9, 2024
1 parent
5fc9d77
commit 6737829
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
Tests/Examples/Template.PipeScript.ExplicitOutput.examples.tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
describe 'Template.PipeScript.ExplicitOutput' { | ||
it 'Template.PipeScript.ExplicitOutput Example 1' { | ||
Invoke-PipeScript { | ||
[explicit()] | ||
param() | ||
"This Will Not Output" | ||
Write-Output "This Will Output" | ||
} | ||
} | ||
it 'Template.PipeScript.ExplicitOutput Example 2' { | ||
{ | ||
[explicit]{ | ||
1,2,3,4 | ||
echo "Output" | ||
} | ||
} | .>PipeScript | ||
} | ||
} | ||
|