Skip to content

Commit 05f5b60

Browse files
committed
Test create_file_name
1 parent 8b9aae5 commit 05f5b60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/onigumo_test.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ defmodule OnigumoTest do
9494
input_url = "https://onigumo.local/hello.html"
9595
created_file_name = Onigumo.Downloader.create_file_name(input_url)
9696

97-
expected_file_name = Hash.md5(input_url, :hex)
97+
input_url_hash = Hash.md5(input_url, :hex)
98+
downloaded_suffix = Application.get_env(:onigumo, :downloaded_suffix)
99+
expected_file_name = input_url_hash <> downloaded_suffix
100+
98101
assert(created_file_name == expected_file_name)
99102
end
100103

0 commit comments

Comments
 (0)