We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0861406 commit b0aa39cCopy full SHA for b0aa39c
Tests/Examples/Join-ScriptBlock.examples.tests.ps1
@@ -0,0 +1,28 @@
1
+
2
+describe 'Join-ScriptBlock' {
3
+ it 'Join-ScriptBlock Example 1' {
4
+ Get-Command Join-PipeScript | Join-PipeScript
5
+ }
6
+ it 'Join-ScriptBlock Example 2' {
7
+ {param([string]$x)},
8
+ {param([string]$y)} |
9
+ Join-PipeScript | Should -BeLike '*param(*$x,*$y*)*'
10
11
+ it 'Join-ScriptBlock Example 3' {
12
+ {
13
+ begin {
14
+ $factor = 2
15
16
+ }, {
17
+ process {
18
+ $_ * $factor
19
20
+ } | Join-PipeScript
21
22
+ it 'Join-ScriptBlock Example 4' {
23
24
+ param($x = 1)
25
+ } | Join-PipeScript -ExcludeParameter x
26
27
+}
28
0 commit comments