We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b46ab0 commit 208dde2Copy full SHA for 208dde2
src/tracers.fs
@@ -70,7 +70,6 @@ let getMsgNameAndFields (t: Type) (x: 'Msg) : string * obj =
70
#if FABLE_COMPILER
71
|> JsInterop.createObj
72
#else
73
- |> List.ofArray // So that we can compare the result by value in the unit tests...
74
|> box
75
#endif
76
tests/TracersTests.fs
@@ -19,7 +19,9 @@ type RootMsg =
19
20
let getTraceForMsg (msg: 'Msg) =
21
let actualName, actualValues = Tracers.getMsgNameAndFields typeof<'Msg> msg
22
- let actualValues = actualValues :?> (string * obj) list
+ let actualValues =
23
+ actualValues :?> (string * obj) array
24
+ |> Array.toList // So that we can compare the actual vs expected by value in the tests.
25
actualName, actualValues
26
27
[<Test>]
0 commit comments