Skip to content

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amart241 committed Jan 31, 2025
1 parent 70da6a7 commit a761ae0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ InModuleScope ScubaConfig {
Mock -CommandName Write-Warning {}
function Get-ScubaDefault {throw 'this will be mocked'}
Mock -ModuleName ScubaConfig Get-ScubaDefault {"."}
Remove-Item function:\ConvertFrom-Yaml
}
context 'Handling repeated keys in YAML file' {
It 'Load config with dupliacte keys'{
Expand Down Expand Up @@ -76,7 +77,6 @@ InModuleScope ScubaConfig {
Should -Invoke -CommandName Write-Warning -Exactly -Times 1
}
AfterAll {
Remove-Item function:\ConvertFrom-Yaml
}
}
}
Expand Down

0 comments on commit a761ae0

Please sign in to comment.