Extract keys to their own table, match keyID #816
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ test "returns error when zip file is bad", %{pack: pack} do
|
||||||
path: Path.absname("test/instance_static/emoji/test_pack/blank.png")
|
path: Path.absname("test/instance_static/emoji/test_pack/blank.png")
|
||||||
}
|
}
|
||||||
|
|
||||||
assert Pack.add_file(pack, nil, nil, file) == {:error, :bad_eocd}
|
# this varies by erlang OTP
|
||||||
|
possible_error_codes = [:bad_eocd, :einval]
|
||||||
|
{:error, code} = Pack.add_file(pack, nil, nil, file)
|
||||||
|
assert Enum.member?(possible_error_codes, code)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "returns pack when zip file is empty", %{pack: pack} do
|
test "returns pack when zip file is empty", %{pack: pack} do
|
||||||
|
|
Loading…
Reference in a new issue