Skip to content

Commit 19b315d

Browse files
committed
Add test that should fail on Linux first (TDD)
1 parent 64b77fb commit 19b315d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ Describe "Test available parameters" {
7272
It "is a switch parameter" {
7373
$params["SaveDscDependency"].ParameterType.FullName | Should -Be "System.Management.Automation.SwitchParameter"
7474
}
75+
76+
It 'does not throw when being applied against a dummy script with no DSC code' {
77+
Invoke-ScriptAnalyzer -ScriptDefinition 'foo' -SaveDscDependency
78+
}
7579
}
7680
}
7781

0 commit comments

Comments
 (0)