1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.User.NotificationSettingTest do
6 use Pleroma.DataCase, async: true
8 alias Pleroma.User.NotificationSetting
10 describe "changeset/2" do
11 test "sets option to hide notification contents" do
13 NotificationSetting.changeset(
14 %NotificationSetting{},
15 %{"hide_notification_contents" => true}
18 assert %Ecto.Changeset{valid?: true} = changeset