VideoHandlingTest: remove nil values

This commit is contained in:
Alex Gleason 2021-12-07 21:55:54 -05:00
parent 992d9287d0
commit 01cc099c8e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -59,8 +59,7 @@ test "it remaps video URLs as attachments if necessary" do
"https://peertube.moe/static/webseed/df5f464b-be8d-46fb-ad81-2d4c2d1630e3-480.mp4", "https://peertube.moe/static/webseed/df5f464b-be8d-46fb-ad81-2d4c2d1630e3-480.mp4",
"mediaType" => "video/mp4", "mediaType" => "video/mp4",
"type" => "Link", "type" => "Link",
"width" => 480, "width" => 480
"height" => nil
} }
] ]
} }
@ -82,7 +81,6 @@ test "it remaps video URLs as attachments if necessary" do
"https://framatube.org/static/webseed/6050732a-8a7a-43d4-a6cd-809525a1d206-1080.mp4", "https://framatube.org/static/webseed/6050732a-8a7a-43d4-a6cd-809525a1d206-1080.mp4",
"mediaType" => "video/mp4", "mediaType" => "video/mp4",
"type" => "Link", "type" => "Link",
"width" => nil,
"height" => 1080 "height" => 1080
} }
] ]
@ -112,7 +110,6 @@ test "it works for peertube videos with only their mpegURL map" do
"https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-1080-fragmented.mp4", "https://peertube.stream/static/streaming-playlists/hls/abece3c3-b9c6-47f4-8040-f3eed8c602e6/abece3c3-b9c6-47f4-8040-f3eed8c602e6-1080-fragmented.mp4",
"mediaType" => "video/mp4", "mediaType" => "video/mp4",
"type" => "Link", "type" => "Link",
"width" => nil,
"height" => 1080 "height" => 1080
} }
] ]