@@ -462,20 +462,20 @@ defmodule Feeb.DBTest do
462462 assert [ "i_am_atom" , 50 ] == DB . one ( { :all_types , :get_atom_and_integer } , [ ] , format: :raw )
463463 assert [ "{\" foo\" :\" bar\" }" ] == DB . one ( { :all_types , :get_map_keys_atom } , [ ] , format: :raw )
464464
465- # With the :type flag, we return the values formatted by their types _without_ the full schema
465+ # With the :map flag, we return the values formatted by their types _without_ the full schema
466466 assert % { map_keys_atom: % { foo: "bar" } } ==
467- DB . one ( { :all_types , :get_map_keys_atom } , [ ] , format: :type )
467+ DB . one ( { :all_types , :get_map_keys_atom } , [ ] , format: :map )
468468
469469 assert % { atom: :i_am_atom , integer: 50 } ==
470- DB . one ( { :all_types , :get_atom_and_integer } , [ ] , format: :type )
470+ DB . one ( { :all_types , :get_atom_and_integer } , [ ] , format: :map )
471471
472472 # Custom selection with different formats
473473 assert [ "Phoebe" ] = DB . one ( { :friends , :fetch } , [ 1 ] , select: [ :name ] , format: :raw )
474- assert % { name: "Phoebe" } = DB . one ( { :friends , :fetch } , [ 1 ] , select: [ :name ] , format: :type )
474+ assert % { name: "Phoebe" } = DB . one ( { :friends , :fetch } , [ 1 ] , select: [ :name ] , format: :map )
475475
476476 # No matching results
477477 assert nil == DB . one ( { :friends , :fetch } , [ 500 ] , select: [ :name ] , format: :raw )
478- assert nil == DB . one ( { :friends , :fetch } , [ 500 ] , select: [ :name ] , format: :type )
478+ assert nil == DB . one ( { :friends , :fetch } , [ 500 ] , select: [ :name ] , format: :map )
479479 end
480480
481481 test "works with window functions when using :raw flag" , % { shard_id: shard_id } do
@@ -583,21 +583,21 @@ defmodule Feeb.DBTest do
583583 assert [ [ "{\" foo\" :\" bar\" }" ] , [ "{\" girl\" :[\" so\" ,\" confusing\" ]}" ] ] |> Enum . sort ( ) ==
584584 DB . all ( { :all_types , :get_map } , [ ] , format: :raw ) |> Enum . sort ( )
585585
586- # With the :type flag, we return the values formatted by their types _without_ the full schema
586+ # With the :map flag, we return the values formatted by their types _without_ the full schema
587587 assert [ % { map: % { girl: [ "so" , "confusing" ] } } , % { map: % { foo: "bar" } } ] |> Enum . sort ( ) ==
588- DB . all ( { :all_types , :get_map } , [ ] , format: :type ) |> Enum . sort ( )
588+ DB . all ( { :all_types , :get_map } , [ ] , format: :map ) |> Enum . sort ( )
589589
590590 assert [ % { atom: :i_am_atom , integer: 50 } , % { atom: :other_atom , integer: - 2 } ] |> Enum . sort ( ) ==
591- DB . all ( { :all_types , :get_atom_and_integer } , [ ] , format: :type ) |> Enum . sort ( )
591+ DB . all ( { :all_types , :get_atom_and_integer } , [ ] , format: :map ) |> Enum . sort ( )
592592
593593 # Custom selection with different formats
594594 assert [ % { name: "Phoebe" } ] =
595- DB . all ( { :friends , :get_by_name } , "Phoebe" , select: [ :name ] , format: :type )
595+ DB . all ( { :friends , :get_by_name } , "Phoebe" , select: [ :name ] , format: :map )
596596
597597 assert [ [ "Joey" ] ] = DB . all ( { :friends , :get_by_name } , "Joey" , select: [ :name ] , format: :raw )
598598
599599 # No matching results
600- assert [ ] == DB . all ( { :friends , :get_by_name } , "Michael Scott" , format: :type )
600+ assert [ ] == DB . all ( { :friends , :get_by_name } , "Michael Scott" , format: :map )
601601 end
602602 end
603603
0 commit comments