There’s no tests for this (I don’t have much experience in testing and don’t know how to test this without uploading really big binary somewhere).
I’m testing this this way:
http-server (from npm) is listening on port 8080 (and serving my video file named “Bigfile.mp4”). Then I open my browser on localhost:4000/api/files/1 (id doesn’t matter) and it starts loading video.
As you can see there is really small amount of code so I can make something new that will be more efficient. But I don’t know how.






















