Allow listing languages, setting source language (#192)
[akkoma] / test / pleroma / user / notification_setting_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.User.NotificationSettingTest do
6 use Pleroma.DataCase, async: true
7
8 alias Pleroma.User.NotificationSetting
9
10 describe "changeset/2" do
11 test "sets option to hide notification contents" do
12 changeset =
13 NotificationSetting.changeset(
14 %NotificationSetting{},
15 %{"hide_notification_contents" => true}
16 )
17
18 assert %Ecto.Changeset{valid?: true} = changeset
19 end
20 end
21 end