Replies: 1 comment 1 reply
-
|
Thanks for testing v6 and asking questions!
# Invoke and ignoring any output, similar to Should -Not -Throw
$null = & { $ham | Submit-AkismetHam -Client $client -ErrorAction Stop }
# Expected should contain actual collection/value
"Spam", "PervasiveSpam" | Should-ContainCollection ($spam | Test-AkismetComment -Client $client) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I haven't slept much, so I'm having trouble thinking clearly.
I'm trying to convert my tests to the new v6 assertions. No issues with most of them. However, I can't seem to translate these assertions:
{ $ham | Submit-AkismetHam -Client $client -ErrorAction Stop } | Should -Not -Throw $spam | Test-AkismetComment -Client $client | Should -BeIn "Spam", "PervasiveSpam" # In this last case, "Spam" and "PervasiveSpam" are not strings, but names of enum values.Does anyone have a better understanding of this?
Beta Was this translation helpful? Give feedback.
All reactions