|
|
@ -149,6 +149,7 @@ module.exports.tests.parse_is_called = (test, common) => { |
|
|
|
controller(req, res, () => { |
|
|
|
controller(req, res, () => { |
|
|
|
t.deepEquals(req, { |
|
|
|
t.deepEquals(req, { |
|
|
|
clean: { |
|
|
|
clean: { |
|
|
|
|
|
|
|
parser: 'libpostal', |
|
|
|
parsed_text: 'replacement parsed_text' |
|
|
|
parsed_text: 'replacement parsed_text' |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -184,6 +185,7 @@ module.exports.tests.iso2_conversion = (test, common) => { |
|
|
|
controller(req, res, () => { |
|
|
|
controller(req, res, () => { |
|
|
|
t.deepEquals(req, { |
|
|
|
t.deepEquals(req, { |
|
|
|
clean: { |
|
|
|
clean: { |
|
|
|
|
|
|
|
parser: 'libpostal', |
|
|
|
parsed_text: { |
|
|
|
parsed_text: { |
|
|
|
locality: 'this is the locality' |
|
|
|
locality: 'this is the locality' |
|
|
|
} |
|
|
|
} |
|
|
@ -223,6 +225,7 @@ module.exports.tests.iso2_conversion = (test, common) => { |
|
|
|
controller(req, res, () => { |
|
|
|
controller(req, res, () => { |
|
|
|
t.deepEquals(req, { |
|
|
|
t.deepEquals(req, { |
|
|
|
clean: { |
|
|
|
clean: { |
|
|
|
|
|
|
|
parser: 'libpostal', |
|
|
|
parsed_text: { |
|
|
|
parsed_text: { |
|
|
|
country: 'unknown country code' |
|
|
|
country: 'unknown country code' |
|
|
|
} |
|
|
|
} |
|
|
@ -265,6 +268,7 @@ module.exports.tests.iso2_conversion = (test, common) => { |
|
|
|
controller(req, res, () => { |
|
|
|
controller(req, res, () => { |
|
|
|
t.deepEquals(req, { |
|
|
|
t.deepEquals(req, { |
|
|
|
clean: { |
|
|
|
clean: { |
|
|
|
|
|
|
|
parser: 'libpostal', |
|
|
|
parsed_text: { |
|
|
|
parsed_text: { |
|
|
|
country: 'ISO3 COUNTRY CODE' |
|
|
|
country: 'ISO3 COUNTRY CODE' |
|
|
|
} |
|
|
|
} |
|
|
|