Improved specs for async matcher error messages

This commit is contained in:
Steve Gravrock
2024-12-31 10:10:40 -08:00
parent 03d665e243
commit 7683325d68
6 changed files with 6 additions and 6 deletions
@@ -232,7 +232,7 @@ describe('#toBeRejectedWithError', function() {
}
expect(f).toThrowError(
`Expected toBeRejectedWithError to be called on a promise but was on a ${typeof actual}.`
'Expected toBeRejectedWithError to be called on a promise but was on a string.'
);
});
});