Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

13 行
397B

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