From 1b6bf70fcb57d1096945cd2ae78295e1ac316558 Mon Sep 17 00:00:00 2001 From: Aditi Date: Tue, 17 Dec 2019 13:28:51 -0800 Subject: [PATCH 1/3] fix(intl-verification): updated tests in elixir library --- test/lob/intl_verification_test.exs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/lob/intl_verification_test.exs b/test/lob/intl_verification_test.exs index 229dac6..3952fd2 100644 --- a/test/lob/intl_verification_test.exs +++ b/test/lob/intl_verification_test.exs @@ -6,10 +6,7 @@ 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" } } @@ -17,9 +14,10 @@ defmodule Lob.IntlVerificationTest do 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 + response = IntlVerification.verify(sample_address) + assert response.primary_line == "370 WATER ST" + assert response.deliverability == "deliverable" end end From 3e9073e03829fc4c387047fd160d5fde2b6ee35a Mon Sep 17 00:00:00 2001 From: Aditi Date: Tue, 17 Dec 2019 14:24:40 -0800 Subject: [PATCH 2/3] fixed --- test/lob/intl_verification_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lob/intl_verification_test.exs b/test/lob/intl_verification_test.exs index 3952fd2..86664fa 100644 --- a/test/lob/intl_verification_test.exs +++ b/test/lob/intl_verification_test.exs @@ -15,7 +15,7 @@ defmodule Lob.IntlVerificationTest do describe "verify/2" do test "returns a dummy response in test mode", %{sample_address: sample_address} do - response = IntlVerification.verify(sample_address) + {:ok, response, _headers} = = IntlVerification.verify(sample_address) assert response.primary_line == "370 WATER ST" assert response.deliverability == "deliverable" end From d32b537e42530b69f21aace89736ea5f359a3a3c Mon Sep 17 00:00:00 2001 From: Aditi Date: Tue, 17 Dec 2019 14:38:01 -0800 Subject: [PATCH 3/3] fixed = error --- test/lob/intl_verification_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lob/intl_verification_test.exs b/test/lob/intl_verification_test.exs index 86664fa..c530dd4 100644 --- a/test/lob/intl_verification_test.exs +++ b/test/lob/intl_verification_test.exs @@ -15,7 +15,7 @@ defmodule Lob.IntlVerificationTest do describe "verify/2" do test "returns a dummy response in test mode", %{sample_address: sample_address} do - {:ok, response, _headers} = = IntlVerification.verify(sample_address) + {:ok, response, _headers} = IntlVerification.verify(sample_address) assert response.primary_line == "370 WATER ST" assert response.deliverability == "deliverable" end