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

View File

@@ -83,7 +83,7 @@ describe('#toBeRejectedWith', function() {
}
expect(f).toThrowError(
`Expected toBeRejectedWith to be called on a promise but was on a ${typeof actual}.`
'Expected toBeRejectedWith to be called on a promise but was on a string.'
);
});
});