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 80e8a0f commit 395be3fCopy full SHA for 395be3f
Tests/Examples/Update-ScriptBlock.examples.tests.ps1
@@ -0,0 +1,20 @@
1
+
2
+describe 'Update-ScriptBlock' {
3
+ it 'Update-ScriptBlock Example 1' {
4
+ Update-PipeScript -ScriptBlock {
5
+ param($x,$y)
6
+ } -RemoveParameter x
7
+ }
8
+ it 'Update-ScriptBlock Example 2' {
9
+ Update-PipeScript -RenameVariable @{x='y'} -ScriptBlock {$x}
10
11
+ it 'Update-ScriptBlock Example 3' {
12
13
+ #region MyRegion
14
+ 1
15
+ #endregion MyRegion
16
+ 2
17
+ } -RegionReplacement @{MyRegion=''}
18
19
+}
20
0 commit comments