Skip to content

Commit

Permalink
feat(intersection_syntactic_variations): improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Jan 30, 2019
1 parent afdfbd4 commit e63c833
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/post/intersections.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ module.exports.tests.functional = function(test) {
intersections.call(doc);
t.deepEqual(doc.getNameAliases('default'), [], 'no names set');

// street and cross_street set
// set street
doc.setAddress('street', 'Example Street');

// street set, cross_street not set
intersections.call(doc);
t.deepEqual(doc.getNameAliases('default'), [], 'no names set');

// set cross_street
doc.setAddress('cross_street', 'Cross Street');

// street and cross_street set
intersections.call(doc);

// intersection aliases defined
Expand Down

0 comments on commit e63c833

Please sign in to comment.