Skip to content

Commit 069f8b0

Browse files
committed
Add test for #Requires -Assembly
1 parent cc0fe51 commit 069f8b0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/TheBigTestFile.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ using namespace System.Management.Automation
1111
#Requires -Modules PSWorkflow,ActiveDirectory
1212
#Requires -ShellId MyLocalShell
1313
#Requires -PSEdition Core
14+
#Requires -Assembly System
1415
#Requires -Modules PSWorkflow @{
1516
ModuleName="PSScheduledJob"
1617
ModuleVersion="1.0.0.0"

spec/testfiles/syntax_test_TheBigTestFile.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ using namespace System.Management.Automation
6868
# ^ meta.requires.powershell keyword.control.requires.powershell
6969
# ^^^^^^^^^^ meta.requires.powershell keyword.other.powershell
7070
# ^^^^ meta.requires.powershell variable.parameter.powershell
71+
#Requires -Assembly System
72+
# <- punctuation.definition.comment.powershell
73+
# ^ meta.requires.powershell keyword.control.requires.powershell
74+
# ^^^^^^^^^ meta.requires.powershell keyword.other.powershell
75+
# ^^^^^^ meta.requires.powershell variable.parameter.powershell
7176
#Requires -Modules PSWorkflow, @{ModuleName="PSScheduledJob"; ModuleVersion="1.0.0.0"}
7277
# <- punctuation.definition.comment.powershell
7378
# ^ meta.requires.powershell keyword.control.requires.powershell

0 commit comments

Comments
 (0)