File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ describe Update-PipeScript {
4
4
Update-PipeScript - ScriptBlock { $v } - RenameVariable @ {v = ' x' } |
5
5
Should - BeLike ' *$x*'
6
6
}
7
+
8
+ it ' Can remove a region' {
9
+ Update-ScriptBlock {
10
+ # region Before
11
+ Before
12
+ # endregion Before
13
+ # region After
14
+ After
15
+ # endregion After
16
+ } - ReplaceRegion @ {" Before" = " " } | Should - BeLike * after*
17
+ }
7
18
}
8
19
9
20
context ' Updating text' {
@@ -32,7 +43,7 @@ describe Update-PipeScript {
32
43
33
44
Update-PipeScript - ScriptBlock { dynamicParam { hello } } - Append { goodbye } | Should - BeLike ' *dynamicParam*{*hello*goodbye*}*'
34
45
35
- Update-PipeScript - ScriptBlock { dynamicParam { hello } end { } } - Append { goodbye } | Should - BeLike ' *dynamicParam*{*hello*goodbye*}*'
46
+ Update-PipeScript - ScriptBlock { dynamicParam { hello } end { } } - Append { goodbye } | Should - BeLike ' *dynamicParam*{*hello*}*end*{* goodbye*}*'
36
47
}
37
48
}
38
49
}
You can’t perform that action at this time.
0 commit comments