Skip to content

Commit 7d531cd

Browse files
committed
Refactor integration tests for Remove-SqlDscLogin: improve structure and readability
1 parent d2b5119 commit 7d531cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Commands/Remove-SqlDscLogin.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Describe 'Remove-SqlDscLogin' -Tag @('Integration_SQL2016', 'Integration_SQL2017
108108
# Try to remove a non-existent login
109109
{
110110
$script:serverObject | Remove-SqlDscLogin -Name $script:testLoginName -Force -ErrorAction 'Stop'
111-
} | Should -Throw -ExpectedMessage "*There is no login with the name '$($script:testLoginName)'*"
111+
} | Should -Throw
112112
}
113113
}
114114

0 commit comments

Comments
 (0)