Skip to content

Commit c147f52

Browse files
Copilotjohlju
andcommitted
Add -ModuleName parameter to all InModuleScope calls in integration test
Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
1 parent 4f5a529 commit c147f52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Integration/Commands/Get-SqlDscStartupParameter.Integration.Tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Describe 'Get-SqlDscStartupParameter' -Tag @('Integration_SQL2017', 'Integration
4444
$result = Get-SqlDscStartupParameter -InstanceName $script:mockInstanceName -ErrorAction 'Stop'
4545

4646
$result | Should -Not -BeNullOrEmpty
47-
$result | Should -BeOfType (InModuleScope -ScriptBlock { [StartupParameters] })
47+
$result | Should -BeOfType (InModuleScope -ModuleName $script:moduleName -ScriptBlock { [StartupParameters] })
4848
$result.DataFilePath | Should -Not -BeNullOrEmpty
4949
$result.LogFilePath | Should -Not -BeNullOrEmpty
5050
$result.ErrorLogPath | Should -Not -BeNullOrEmpty
@@ -56,7 +56,7 @@ Describe 'Get-SqlDscStartupParameter' -Tag @('Integration_SQL2017', 'Integration
5656
$result = Get-SqlDscStartupParameter -ServerName $script:mockServerName -InstanceName $script:mockInstanceName -ErrorAction 'Stop'
5757

5858
$result | Should -Not -BeNullOrEmpty
59-
$result | Should -BeOfType (InModuleScope -ScriptBlock { [StartupParameters] })
59+
$result | Should -BeOfType (InModuleScope -ModuleName $script:moduleName -ScriptBlock { [StartupParameters] })
6060
$result.DataFilePath | Should -Not -BeNullOrEmpty
6161
$result.LogFilePath | Should -Not -BeNullOrEmpty
6262
$result.ErrorLogPath | Should -Not -BeNullOrEmpty
@@ -68,7 +68,7 @@ Describe 'Get-SqlDscStartupParameter' -Tag @('Integration_SQL2017', 'Integration
6868
$result = Get-SqlDscStartupParameter -ServerName $script:mockServerName -InstanceName $script:mockInstanceName -ErrorAction 'Stop'
6969

7070
$result | Should -Not -BeNullOrEmpty
71-
$result | Should -BeOfType (InModuleScope -ScriptBlock { [StartupParameters] })
71+
$result | Should -BeOfType (InModuleScope -ModuleName $script:moduleName -ScriptBlock { [StartupParameters] })
7272
$result.DataFilePath | Should -Not -BeNullOrEmpty
7373
$result.LogFilePath | Should -Not -BeNullOrEmpty
7474
$result.ErrorLogPath | Should -Not -BeNullOrEmpty
@@ -94,7 +94,7 @@ Describe 'Get-SqlDscStartupParameter' -Tag @('Integration_SQL2017', 'Integration
9494
$result = Get-SqlDscStartupParameter -ServiceObject $script:serviceObject -ErrorAction 'Stop'
9595

9696
$result | Should -Not -BeNullOrEmpty
97-
$result | Should -BeOfType (InModuleScope -ScriptBlock { [StartupParameters] })
97+
$result | Should -BeOfType (InModuleScope -ModuleName $script:moduleName -ScriptBlock { [StartupParameters] })
9898
$result.DataFilePath | Should -Not -BeNullOrEmpty
9999
$result.LogFilePath | Should -Not -BeNullOrEmpty
100100
$result.ErrorLogPath | Should -Not -BeNullOrEmpty
@@ -106,7 +106,7 @@ Describe 'Get-SqlDscStartupParameter' -Tag @('Integration_SQL2017', 'Integration
106106
$result = $script:serviceObject | Get-SqlDscStartupParameter -ErrorAction 'Stop'
107107

108108
$result | Should -Not -BeNullOrEmpty
109-
$result | Should -BeOfType (InModuleScope -ScriptBlock { [StartupParameters] })
109+
$result | Should -BeOfType (InModuleScope -ModuleName $script:moduleName -ScriptBlock { [StartupParameters] })
110110
$result.DataFilePath | Should -Not -BeNullOrEmpty
111111
$result.LogFilePath | Should -Not -BeNullOrEmpty
112112
$result.ErrorLogPath | Should -Not -BeNullOrEmpty

0 commit comments

Comments
 (0)