feat: Add new toBeRejectedWithMatching async matcher

Addresses #1781
This commit is contained in:
Benoit CHOMEL
2026-02-26 00:01:45 +01:00
parent f7132d98cd
commit 0a5acd99cb
3 changed files with 144 additions and 1 deletions

View File

@@ -7,7 +7,8 @@ getJasmineRequireObj().requireAsyncMatchers = function(jRequire, j$) {
'toBeRejected',
'toBeResolvedTo',
'toBeRejectedWith',
'toBeRejectedWithError'
'toBeRejectedWithError',
'toBeRejectedWithMatching'
],
matchers = {};