Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(intl-verification): updated tests in elixir library #33

Merged
merged 3 commits into from
Dec 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions test/lob/intl_verification_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ defmodule Lob.IntlVerificationTest do
setup do
%{
sample_address: %{
primary_line: "123 Test St",
city: "HEARST",
state: "ONTARIO",
postal_code: "P0L1N0",
primary_line: "deliverable",
country: "CA"
}
}
end

describe "verify/2" do

test "returns a 403 in test mode", %{sample_address: sample_address} do
{:error, message} = IntlVerification.verify(sample_address)
assert message.status_code == 403
test "returns a dummy response in test mode", %{sample_address: sample_address} do
{:ok, response, _headers} = IntlVerification.verify(sample_address)
assert response.primary_line == "370 WATER ST"
assert response.deliverability == "deliverable"
end

end
Expand Down