Skip to content

Commit 208dde2

Browse files
committed
Convert array to list only in the tracers unit tests
1 parent 5b46ab0 commit 208dde2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/tracers.fs

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ let getMsgNameAndFields (t: Type) (x: 'Msg) : string * obj =
7070
#if FABLE_COMPILER
7171
|> JsInterop.createObj
7272
#else
73-
|> List.ofArray // So that we can compare the result by value in the unit tests...
7473
|> box
7574
#endif
7675

tests/TracersTests.fs

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ type RootMsg =
1919

2020
let getTraceForMsg (msg: 'Msg) =
2121
let actualName, actualValues = Tracers.getMsgNameAndFields typeof<'Msg> msg
22-
let actualValues = actualValues :?> (string * obj) list
22+
let actualValues =
23+
actualValues :?> (string * obj) array
24+
|> Array.toList // So that we can compare the actual vs expected by value in the tests.
2325
actualName, actualValues
2426

2527
[<Test>]

0 commit comments

Comments
 (0)