pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
12 stars 11 forks source link

Refactor `commonHandler.js` tests #187

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

In my long running goal of better tests, and 100% test coverage, that has brought about this refactor.

While previously tests for this module did exist, since I've since moved onto a more modular and less complex testing strategy, I've gone ahead and taken those same queues to refactor those tests into smaller bit size files, with a file per function of the module, like being done elsewhere.

Additionally, these tests should now get this module to 100% testing coverage.