Skip to content
This repository has been archived by the owner. It is now read-only.

feat(geo): add state info into emails #215

Merged
merged 2 commits into from Sep 30, 2016
Merged

feat(geo): add state info into emails #215

merged 2 commits into from Sep 30, 2016

Conversation

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Sep 29, 2016

Fixes #201

@vbudhram r?

Copy link
Contributor

@vbudhram vbudhram left a comment

Looks good, only needs a couple more tests. Thanks!

@@ -154,8 +154,12 @@ module.exports = function (log) {
var location = message.location
// construct the location string from the location object
if (location) {
if (location.city) {
if (location.city && location.stateCode) {
return translator.format(translator.gettext('%(city)s, %(stateCode)s, %(country)s (estimated)'), location)

This comment has been minimized.

@vbudhram

vbudhram Sep 29, 2016
Contributor

Ack looks like you found a gap in our coverage. Mind adding test cases in for

  • city and country
  • state and country
  • only country
@vladikoff vladikoff force-pushed the i201-geo-state branch from bca9996 to 9e5cfc2 Sep 30, 2016
@coveralls
Copy link

@coveralls coveralls commented Sep 30, 2016

Coverage Status

Coverage increased (+0.3%) to 93.533% when pulling 9e5cfc2 on i201-geo-state into d14d06b on master.

@vladikoff vladikoff merged commit 5bb87c6 into master Sep 30, 2016
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls First build on i201-geo-state at 93.533%
Details
@vladikoff vladikoff deleted the i201-geo-state branch Sep 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants