|
|
@ -8,6 +8,10 @@ module.exports.tests.interface = function(test, common) { |
|
|
|
var input = { |
|
|
|
var input = { |
|
|
|
data: [{ |
|
|
|
data: [{ |
|
|
|
'parent': { |
|
|
|
'parent': { |
|
|
|
|
|
|
|
'country': ['United States'], // these shouldn't change
|
|
|
|
|
|
|
|
'country_id': ['85633793'], |
|
|
|
|
|
|
|
'country_a': ['USA'] |
|
|
|
|
|
|
|
}, |
|
|
|
'country': ['United States'], |
|
|
|
'country': ['United States'], |
|
|
|
'country_id': ['85633793'], |
|
|
|
'country_id': ['85633793'], |
|
|
|
'country_a': ['USA'], |
|
|
|
'country_a': ['USA'], |
|
|
@ -31,13 +35,16 @@ module.exports.tests.interface = function(test, common) { |
|
|
|
'locality_a': [null], |
|
|
|
'locality_a': [null], |
|
|
|
'neighbourhood': [], |
|
|
|
'neighbourhood': [], |
|
|
|
'neighbourhood_id': [] |
|
|
|
'neighbourhood_id': [] |
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var expected = { |
|
|
|
var expected = { |
|
|
|
data: [{ |
|
|
|
data: [{ |
|
|
|
'parent': { |
|
|
|
'parent': { |
|
|
|
|
|
|
|
'country': ['United States'], |
|
|
|
|
|
|
|
'country_id': ['85633793'], |
|
|
|
|
|
|
|
'country_a': ['USA'] |
|
|
|
|
|
|
|
}, |
|
|
|
'country': ['United States'], |
|
|
|
'country': ['United States'], |
|
|
|
'country_id': ['whosonfirst:country:85633793'], |
|
|
|
'country_id': ['whosonfirst:country:85633793'], |
|
|
|
'country_a': ['USA'], |
|
|
|
'country_a': ['USA'], |
|
|
@ -61,7 +68,6 @@ module.exports.tests.interface = function(test, common) { |
|
|
|
'locality_a': [null], |
|
|
|
'locality_a': [null], |
|
|
|
'neighbourhood': [], |
|
|
|
'neighbourhood': [], |
|
|
|
'neighbourhood_id': [] |
|
|
|
'neighbourhood_id': [] |
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|