mirror of
https://github.com/Smaug123/WoofWare.Expect
synced 2025-10-05 20:48:40 +00:00
Allow line number stability too (#1)
This commit is contained in:
@@ -17,7 +17,7 @@ module SimpleTest =
|
||||
let ``Example of a failing test`` () =
|
||||
expect {
|
||||
snapshot
|
||||
"snapshot mismatch! snapshot at filepath.fs:32 (Example of a failing test) was:
|
||||
"snapshot mismatch! snapshot at filepath.fs:99 (Example of a failing test) was:
|
||||
|
||||
- 123
|
||||
|
||||
@@ -28,10 +28,17 @@ actual was:
|
||||
return
|
||||
Assert
|
||||
.Throws<Exception>(fun () ->
|
||||
expectWithMockedFilePath "filepath.fs" {
|
||||
expectWithMockedFilePath ("filepath.fs", 99) {
|
||||
snapshot "123"
|
||||
return 124
|
||||
}
|
||||
)
|
||||
.Message
|
||||
}
|
||||
|
||||
[<Test>]
|
||||
let ``Basic example`` () =
|
||||
expect {
|
||||
snapshot "123"
|
||||
return 123
|
||||
}
|
||||
|
Reference in New Issue
Block a user