Skip to content

Commit 1306b54

Browse files
committed
run formatter
1 parent 2d63a5b commit 1306b54

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/scenic/cache/hash_test.exs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ defmodule Scenic.Cache.HashTest do
117117

118118
test "verify_file returns {:ok, data} when the hash checks out ok" do
119119
assert Hash.verify_file(@missing_hash_path, @missing_hash, :sha) == {:ok, @missing_hash}
120+
120121
assert Hash.verify_file(@missing_hash_path, @missing_hash_256, :sha256) ==
121122
{:ok, @missing_hash_256}
122123
end
123124

124125
test "verify_file returns {:error, :hash_failure} when the hash fails" do
125126
assert Hash.verify_file(@missing_hash_path, "not_a_hash", :sha) == {:error, :hash_failure}
126-
assert Hash.verify_file(@missing_hash_path, "not_a_hash", :sha256) ==
127-
{:error, :hash_failure}
127+
assert Hash.verify_file(@missing_hash_path, "not_a_hash", :sha256) == {:error, :hash_failure}
128128
end
129129

130130
test "verify_file passes through file system errors" do
@@ -137,8 +137,7 @@ defmodule Scenic.Cache.HashTest do
137137

138138
test "verify_file! returns data when the hash checks out ok" do
139139
assert Hash.verify_file!(@missing_hash_path, @missing_hash, :sha) == @missing_hash
140-
assert Hash.verify_file!(@missing_hash_path, @missing_hash_256, :sha256) ==
141-
@missing_hash_256
140+
assert Hash.verify_file!(@missing_hash_path, @missing_hash_256, :sha256) == @missing_hash_256
142141
end
143142

144143
test "verify_file! raises on a hash failure" do

0 commit comments

Comments
 (0)