Failing Test node app-promise.js -a 08822

Step 7 of Lesson 3 involves passing this challenge.

On runnning,
node app-promise.js -a 08822

The expected output is
weather-app $ node app-promise.js -a 08822
{ results:
[ { address_components: [Array],
formatted_address: 'Flemington, NJ 08822, USA',
geometry: [Object],
place_id: 'ChIJLweqZVPxw4kRcGsYmH1fjZc',
types: [Array] } ],
status: 'OK' }

But the API must have changed, because I’m getting
weather-app $ node app-promise.js -a 08822
{ results:
[ { access_points: [], --------------------------------------- EXTRA PROPERTY
address_components: [Array],
formatted_address: 'Flemington, NJ 08822, USA',
geometry: [Object],
place_id: 'ChIJLweqZVPxw4kRcGsYmH1fjZc',
types: [Array] } ],
status: 'OK' }

Because of the ‘EXTRA PROPERTY’ I’m failing the test. So, please update this?

Thanks for reporting this! I just updated the task to also check for the access_points property that was added to the API response.

1 Like