Skip to content

Commit

Permalink
Add test for #Requires -PSEdition
Browse files Browse the repository at this point in the history
  • Loading branch information
theaquamarine committed Feb 5, 2020
1 parent c277285 commit cc0fe51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/TheBigTestFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ using namespace System.Management.Automation
#Requires -Modules PSWorkflow, ActiveDirectory
#Requires -Modules PSWorkflow,ActiveDirectory
#Requires -ShellId MyLocalShell
#Requires -PSEdition Core
#Requires -Modules PSWorkflow @{
ModuleName="PSScheduledJob"
ModuleVersion="1.0.0.0"
Expand Down
7 changes: 6 additions & 1 deletion spec/testfiles/syntax_test_TheBigTestFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ using namespace System.Management.Automation
# ^ meta.requires.powershell keyword.control.requires.powershell
# ^^^^^^^^ meta.requires.powershell keyword.other.powershell
# ^^^^^^^^^^^^ meta.requires.powershell variable.parameter.powershell
#Requires -PSEdition Core
# <- punctuation.definition.comment.powershell
# ^ meta.requires.powershell keyword.control.requires.powershell
# ^^^^^^^^^^ meta.requires.powershell keyword.other.powershell
# ^^^^ meta.requires.powershell variable.parameter.powershell
#Requires -Modules PSWorkflow, @{ModuleName="PSScheduledJob"; ModuleVersion="1.0.0.0"}
# <- punctuation.definition.comment.powershell
# ^ meta.requires.powershell keyword.control.requires.powershell
Expand Down Expand Up @@ -1234,4 +1239,4 @@ $ConfirmPreference $DebugPreference $ErrorActionPreference $ErrorView $FormatEnu
# <- variable.language.powershell
# ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell
# ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell
# ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell
# ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell ^ variable.language.powershell

0 comments on commit cc0fe51

Please sign in to comment.