Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Commit b332422

Browse files
tests: keep Import-TestData mask assertion under the 150-char line limit
super-linter enforces PSScriptAnalyzer's PSAvoidLongLines (max 150), which is not in the default local ruleset; shorten the ::add-mask:: assertion message.
1 parent 753a760 commit b332422

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Import-TestData.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ try {
4848
Set-Content -Path $githubEnvPath -Value '' -NoNewline
4949
$env:PSMODULE_TEST_DATA = '{"secrets":{"MY_SECRET":"not-a-real-secret"}}'
5050
$information = Import-TestData 6>&1 | Out-String
51-
& $assert ($information -match '::add-mask::not-a-real-secret') 'Expected the secret value to be masked via ::add-mask:: on the information stream.'
51+
& $assert ($information -match '::add-mask::not-a-real-secret') 'Expected the secret to be masked via ::add-mask:: on the information stream.'
5252

5353
# A no-op when no test data is provided; nothing on the success/pipeline stream.
5454
$env:PSMODULE_TEST_DATA = ''

0 commit comments

Comments
 (0)