@@ -7,11 +7,8 @@ BeforeAll {
77 # We source the script file and then override Invoke-RestMethod / Invoke-WebRequest
88 # inside each test via Mock so no real network calls are made.
99
10- # Stub out logging functions that the script depends on but are defined in logging.ps1
11- function LogWarning ($msg ) { Write-Warning $msg }
12- function LogError ($msg ) { Write-Error $msg }
13- function LogGroupStart ($msg ) {}
14- function LogGroupEnd {}
10+ # Load shared logging functions used by Verify-Links.ps1
11+ . (Resolve-Path " $PSScriptRoot /../logging.ps1" ).Path
1512
1613 # Source only the function definitions (stop before the script-body runs)
1714 # by dot-sourcing within a script block that replaces the parameter-driven
@@ -140,7 +137,7 @@ Describe "ProcessNpmLink" {
140137 }
141138
142139 It " Returns false when the specific version does not exist in upstream" {
143- $result = ProcessNpmLink ([System.Uri ]" https://www.npmjs.com/package/@azure/ai-agents/v/9 .9.9" )
140+ $result = ProcessNpmLink ([System.Uri ]" https://www.npmjs.com/package/@azure/ai-agents/v/9999 .9.9" )
144141 $result | Should - Be $false
145142 }
146143 }
@@ -162,7 +159,7 @@ Describe "ProcessNpmLink" {
162159 }
163160
164161 It " Returns false when unscoped versioned package version is missing" {
165- $result = ProcessNpmLink ([System.Uri ]" https://www.npmjs.com/package/typescript/v/99 .0.0" )
162+ $result = ProcessNpmLink ([System.Uri ]" https://www.npmjs.com/package/typescript/v/9999 .0.0" )
166163 $result | Should - Be $false
167164 }
168165 }
0 commit comments