chore: webhook timer coverage in mutate-processor test #1897
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is very hard to test because the Capability does not have actual bindings. Because of that the test stops here and returns early. The only meaningful tests I could do was to ensure the timer start and stop were called.
There is already too much mocking in this file I cannot get any assertions to pass for base64 calls here.
UPDATE: was able to validate the first decodeData was called by shuffling files around and mocking the call in
mutate-process.test.ts
. The rest of the test is untestable due to no bindings in the capabilitiesNeeds #1895 to pass.
Related Issue
Fixes #1892
Relates to #
Type of change
Checklist before merging