Skip to content

Commit d9feba7

Browse files
committed
debugging failing test
1 parent c0b7b1a commit d9feba7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/tests/Set-BloggerConfig.Tests.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ Describe "Set-BloggerConfig" {
77
BlogId = $null
88
UserPreferences = "TestDrive:\UserPreferences.json"
99
}
10-
}
10+
}
1111
}
1212

1313
It "Should persist new value to <UserPreference> to BloggerSession.UserPreferences" -TestCases @(
1414
@{ UserPreference="BlogId"; UserPreferenceValue="12345" }
1515
) {
16+
# arrange
17+
InModuleScope "PSBlogger" {
18+
$BloggerSession = [pscustomobject]@{
19+
BlogId = $null
20+
UserPreferences = "TestDrive:\UserPreferences.json"
21+
}
22+
}
23+
1624
# act
1725
Set-BloggerConfig -Name $UserPreference -Value $UserPreferenceValue -ErrorAction Stop
1826

0 commit comments

Comments
 (0)