JoshuaPeddle / Visualizing-Technology-Use-by-Age-and-Region

Comp3100. Team 32. Joshua Peddle & Ethan Mc Donald.
0 stars 1 forks source link

Added some tests. Usages and Responses now able to retrieve objects. #16

Closed JoshuaPeddle closed 2 years ago

JoshuaPeddle commented 2 years ago

The main updates for this branch are the getResponses() of responses.js and getUsages() of usages.js.

The functions could use some validation and error checking but everything seems to work on my end.

The changes to response.js, usage.js and server-app.js are minor refactors and formatting fixes.

I also added some code in tests.js. There are a few basic tests for the API calls that I was using to develop this PR. We can update these with more robust tests.

Recap: Main changes: responses.js, usages.js, tests.js Refactors: response.js, usage.js and server-app.js

JoshuaPeddle commented 2 years ago

Good catch. That can be removed.