diff options
author | Marc Coquand <marc@mccd.space> | 2023-12-26 11:21:59 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2023-12-26 11:21:59 -0600 |
commit | 0dcc905f2fdc89f3be834c670a5bcf42386eb663 (patch) | |
tree | 71d960afcb27ffaf3c00994593acb98fbb206c4e /lib/fixture.ml | |
parent | b826340d7536c2777fdcafb3bfcc6ebc8d8053ee (diff) | |
download | fixgen-0dcc905f2fdc89f3be834c670a5bcf42386eb663.tar.gz fixgen-0dcc905f2fdc89f3be834c670a5bcf42386eb663.tar.bz2 fixgen-0dcc905f2fdc89f3be834c670a5bcf42386eb663.zip |
Update docs
Diffstat (limited to '')
-rw-r--r-- | lib/fixture.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fixture.ml b/lib/fixture.ml index d28d4b3..94c39a9 100644 --- a/lib/fixture.ml +++ b/lib/fixture.ml @@ -135,6 +135,8 @@ let json_of_generated_fixtures fixtures = "[" ^ String.concat ", " (List.map json_of_row rows) ^ "]" +(* TODO: Should export not only as strings *) + let%test "json_of_generated_fixtures" = let result = [ [ "id"; "name" ]; [ "1234"; "John" ] ] |> json_of_generated_fixtures in result = "[{\"id\": \"1234\", \"name\": \"John\"}]" |