fix(manifest): update test
Well, this reminds us to refactor the testing suite... This currently is pretty dangerous, since the scopes are mixed up and there is no proper isolation between test blocks.
This commit is contained in:
parent
fd4ed3011a
commit
c3aa057bfc
1 changed files with 2 additions and 2 deletions
|
|
@ -59,9 +59,9 @@ Describe 'Set-Manifest' `
|
||||||
Mock Set-Content {
|
Mock Set-Content {
|
||||||
Should -Invoke -CommandName 'Set-Content' -Exactly -Times 1
|
Should -Invoke -CommandName 'Set-Content' -Exactly -Times 1
|
||||||
|
|
||||||
$args[1] | Should -Be 'foobar.x'
|
$Path | Should -Be 'foobar.x'
|
||||||
|
|
||||||
$args[3] | Should -Be ($mockManifest | ConvertTo-JSON)
|
$Value | Should -Be ($mockManifest | ConvertTo-JSON)
|
||||||
}
|
}
|
||||||
|
|
||||||
#mocking Get-Content, therefore file name can be bogus
|
#mocking Get-Content, therefore file name can be bogus
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue