Skip to content

Commit

Permalink
added workaround for Fable compiler in test
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonMN committed Sep 11, 2021
1 parent ea6a63c commit 2c9b721
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Hedgehog.Tests/PropertyTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@ let propertyTests = testList "Property tests" [
Some(a + b) =! tryAdd a b
}
|> Property.renderWith (PropertyConfig.withShrinks 0<shrinks> PropertyConfig.defaultConfig)
#if FABLE_COMPILER
// See the discussion in this PR for what needs to happen for Fable to support Expect.stringContains https://github.com/hedgehogqa/fsharp-hedgehog/pull/328
Expect.isTrue (report.Contains guid)
#else
Expect.stringContains report guid "Missing counterexample text"
#endif
]

0 comments on commit 2c9b721

Please sign in to comment.