1 defmodule Pleroma.SafeJsonbSetTest do
4 test "it doesn't wipe the object when asked to set the value to NULL" do
5 assert %{rows: [[%{"key" => "value", "test" => nil}]]} =
6 Ecto.Adapters.SQL.query!(
8 "select safe_jsonb_set('{\"key\": \"value\"}'::jsonb, '{test}', NULL);",