Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allowMocked when using a callback for the path (#1877)
* fix: allowMocked when using a callback for the path When an Interceptor was created with a comparator for the path, the `matchOrigin` function was comparing the string equivalent of the function instead of evaluating it. I'm not a fan of the fact that the function `matchOrigin` is comparing the pathname, but that's a refactor for another day. Fixes: #1867
- Loading branch information
1 parent
a56a209
commit 9fdeeca
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters