You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
584 B
22 lines
584 B
5 years ago
|
# Pleroma: A lightweight social networking server
|
||
5 years ago
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
||
5 years ago
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
|
defmodule Pleroma.User.NotificationSettingTest do
|
||
|
use Pleroma.DataCase
|
||
|
|
||
|
alias Pleroma.User.NotificationSetting
|
||
|
|
||
|
describe "changeset/2" do
|
||
4 years ago
|
test "sets option to hide notification contents" do
|
||
5 years ago
|
changeset =
|
||
|
NotificationSetting.changeset(
|
||
|
%NotificationSetting{},
|
||
4 years ago
|
%{"hide_notification_contents" => true}
|
||
5 years ago
|
)
|
||
|
|
||
|
assert %Ecto.Changeset{valid?: true} = changeset
|
||
|
end
|
||
|
end
|
||
|
end
|