fastify-request-context icon indicating copy to clipboard operation
fastify-request-context copied to clipboard

fix: refactor requestContextPlugin.spec.js to use response headers

Open shawshankkumar opened this issue 2 years ago • 1 comments

Fixes #175

I replaced the json body with value in headers. I found this to be the best approach. if anyone has any better solutions, happy to implement that as well.

Checklist

  • [x] run npm run test and npm run benchmark (can't find script benchmark)
  • [x] tests and/or benchmarks are included
  • [ ] documentation is changed or added
  • [x] commit message and code follows the Developer's Certification of Origin and the Code of conduct

shawshankkumar avatar Dec 18 '23 19:12 shawshankkumar

#177 is a possible alternative approach. Not sure what is the best one :)

alfonsograziano avatar Dec 18 '23 19:12 alfonsograziano