chore: removes done callbacks in tests [CHORE-1870] by yowainwright · Pull Request #1875 · koajs/koa (original) (raw)
tests/response/writable.test.js
Refactored continuous requests test to use async/await and once events.
tests/response/redirect.test.js
Converted redirect tests to async/await and removed done callbacks.
tests/response/flushHeaders.test.js
Updated tests for flushHeaders with async/await and improved error triggering.
tests/request/href.test.js
Modernized GET request test by replacing HTTP module code with supertest.
tests/context/onerror.test.js
Refactored error handling tests to use async/await in onerror scenarios.
tests/application/respond.test.js
Updated error emission tests to employ async/await.
tests/application/index.test.js
Replaced callback style with async/await for socket error handling.
tests/application/flushHeaders.test.js
Added a new async/await test file for flushHeaders functionality.