Skip to content

Commit b0aa39c

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding and Updating READMEs
1 parent 0861406 commit b0aa39c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)