Skip to content

Commit fc13b22

Browse files
committed
🧪 Make Update Test more detailed
1 parent 4dfa1c3 commit fc13b22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ModuleFast.tests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,9 @@ Describe 'Install-ModuleFast' -Tag 'E2E' {
449449
}
450450
It 'Only installs once when Update is specified and latest has not changed' {
451451
Install-ModuleFast @imfParams 'Az.Accounts' -Update
452-
#This will error if the file already exists
453-
Install-ModuleFast @imfParams 'Az.Accounts' -Update
452+
Install-ModuleFast @imfParams 'Az.Accounts' -Update -Debug *>&1
453+
| Select-String 'best remote candidate matches what is locally installed'
454+
| Should -Not -BeNullOrEmpty
454455
}
455456

456457
It 'Updates only dependent module that requires update' {

0 commit comments

Comments
 (0)