• JavaScript 84.4%
  • HTML 14.3%
  • CSS 0.7%
  • ReScript 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-27 20:47:01 +00:00
.cache/replit fork 2024-10-27 20:47:01 +00:00
controllers fork 2024-10-27 20:47:01 +00:00
public fork 2024-10-27 20:47:01 +00:00
routes fork 2024-10-27 20:47:01 +00:00
tests fork 2024-10-27 20:47:01 +00:00
views fork 2024-10-27 20:47:01 +00:00
.gitignore fork 2024-10-27 20:47:01 +00:00
.replit fork 2024-10-27 20:47:01 +00:00
assertion-analyser.js Initial commit from Gomix. 2017-02-18 19:23:41 +00:00
package-lock.json fork 2024-10-27 20:47:01 +00:00
package.json fork 2024-10-27 20:47:01 +00:00
README.md fork 2024-10-27 20:47:01 +00:00
replit_zip_error_log.txt fork 2024-10-27 20:47:01 +00:00
server.js fork 2024-10-27 20:47:01 +00:00
test-runner.js Initial commit from Gomix. 2017-02-18 19:23:41 +00:00

Stock Price Checker

HTTP Requests

I originally depended on the request package for making HTTP requests, but I just learn that the package is in maintenance mode.

https://github.com/request/request/issues/3142

As a result, I'm using Axios instead.

Integration Testing

For integration testing since I'm currently not intending to setup anything to mock API responses, I'm just testing the structure of the data rather than actual values.

I may come back to this later, and try think of the lightest solution to mock the API and database to have slightly more useful tests.

Something freeCodeCamp could do to improve, is prior to making students write their own functional tests, show users how they can properly test methods or classes that are stateful and depend on something stateful.