Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F13520048
maps_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
637 B
Referenced Files
None
Subscribers
None
maps_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2024 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.MapsTest
do
use
Pleroma.DataCase
,
async
:
true
alias
Pleroma.Maps
describe
"filter_empty_values/1"
do
assert
%{
"bar"
=>
"b"
,
"ray"
=>
[
"foo"
],
"objs"
=>
%{
"a"
=>
"b"
}}
==
Maps
.
filter_empty_values
(%{
"foo"
=>
nil
,
"fooz"
=>
""
,
"bar"
=>
"b"
,
"rei"
=>
[],
"ray"
=>
[
"foo"
],
"obj"
=>
%{},
"objs"
=>
%{
"a"
=>
"b"
}
})
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 7:20 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
571650
Default Alt Text
maps_test.exs (637 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment