Skip to content

Commit 9a6a980

Browse files
committed
Update named waypoint arrival fixtures
1 parent 0618941 commit 9a6a980

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

test/fixtures_test.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ tape.test('verify existence/update fixtures', function(assert) {
130130
checkOrWrite(step, `${basePath}_exit_destination`);
131131
}
132132

133-
['modes', 'other', 'arrive_waypoint', 'arrive_waypoint_last', 'arrive_upcoming', 'arrive_short', 'arrive_short_upcoming'].concat(constants.types).forEach((type) => {
133+
['modes', 'other', 'arrive_waypoint', 'arrive_waypoint_last', 'arrive_waypoint_name', 'arrive_upcoming', 'arrive_short', 'arrive_short_upcoming'].concat(constants.types).forEach((type) => {
134134
var basePath = path.join(__dirname, 'fixtures', 'v5', underscorify(type));
135135
var baseStep, step;
136136

@@ -234,6 +234,34 @@ tape.test('verify existence/update fixtures', function(assert) {
234234
});
235235
});
236236
break;
237+
case 'arrive_waypoint_name':
238+
step = {
239+
maneuver: {
240+
type: 'arrive'
241+
},
242+
name: 'Street Name'
243+
};
244+
checkOrWrite(step, path.join(basePath, 'no_modifier'), {
245+
legIndex: 0,
246+
legCount: 2,
247+
waypointName: 'Somewhere'
248+
});
249+
250+
constants.modifiers.forEach((modifier) => {
251+
var step = {
252+
maneuver: {
253+
type: 'arrive',
254+
modifier: modifier
255+
},
256+
name: 'Street Name'
257+
};
258+
checkOrWrite(step, path.join(basePath, underscorify(modifier)), {
259+
legIndex: 0,
260+
legCount: 2,
261+
waypointName: 'Somewhere'
262+
});
263+
});
264+
break;
237265
case 'depart':
238266
step = {
239267
maneuver: {

0 commit comments

Comments
 (0)