@hongminhee@hollo.social

I have great respect for @thisismissem's tremendous work on @hollo.😲

https://hachyderm.io/@thisismissem/114056333638591578

hachyderm.io

Emelia 👸🏻 (@thisismissem@hachyderm.io)

Extended my previous contribution to @hollo@hollo.social tonight with some tests for the `GET /api/v1/accounts/verify_credentials` route: https://github.com/fedify-dev/hollo/pull/126/files#diff-944986dc760a778a36a291dd17b1e234ece1252336b9eefed1032e64a468601e There's some magic going on here, but I'm pretty happy with the results. Though, node.js's test runner seems really slow at times and I've no idea why, like some of these are taking 1-4 seconds, whereas other tests are 54ms. I've tried instrumenting the code to find slownesses and I can't, everything's taking only milliseconds.

@thisismissem@hachyderm.io

Extended my previous contribution to @hollo tonight with some tests for the `GET /api/v1/accounts/verify_credentials` route:

github.com/fedify-dev/hollo/pu

There's some magic going on here, but I'm pretty happy with the results.

Though, node.js's test runner seems really slow at times and I've no idea why, like some of these are taking 1-4 seconds, whereas other tests are 54ms. I've tried instrumenting the code to find slownesses and I can't, everything's taking only milliseconds.

github.com

Refactor OAuth logic for improved testability by ThisIsMissEm · Pull Request #126 · fedify-dev/hollo

Overview This pull request aims to improve the ability to write tests for the OAuth routes & middleware by extracting out helpers to create authorization codes, access tokens and client credent...

1 reply