pixiebrix-extension
pixiebrix-extension copied to clipboard
Add tests for `codeGrantFlow` and `implicitGrantFlow`
We recently committed a bug related to changing the request parameters accidentally on the auth request. We should add some basic unit tests around the grant flow functions that just verify that request parameters/headers/etc are not changing. Basically like snapshot tests for the web requests involved in these grant flow functions, as a safety check going forward.
Related context:
- Bug: https://pixiebrix.slack.com/archives/C0436P48QHY/p1719515794059689
- Bug Fix PR: https://github.com/pixiebrix/pixiebrix-extension/pull/8714