We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a517f26 commit 94a2461Copy full SHA for 94a2461
test/geocode.js
@@ -84,5 +84,21 @@ describe("Geocode", function(){
84
done();
85
});
86
87
+
88
+ it("should report errors", function(done){
89
+ geoData = {
90
+ addressLine1: "Bad adrress line 1",
91
+ city: "City",
92
+ stateCode: "State",
93
+ zip: "ZipCode"
94
+ }
95
+ helper.nock().post("/accounts/FakeAccountId/geocodeRequest", helper.buildXml({requestAddress: geoData})).reply(400, {"Content-Type": "application/xml"});
96
+ Geocode.request(helper.createClient(), geoData, function(err, geocode){
97
+ if(err){
98
+ return done();
99
100
+ done(new Error('An error is estimated'));
101
+ });
102
103
104
0 commit comments