Improved specs for async matcher error messages
This commit is contained in:
@@ -29,7 +29,7 @@ describe('toBeRejected', function() {
|
||||
}
|
||||
|
||||
expect(f).toThrowError(
|
||||
`Expected toBeRejected to be called on a promise but was on a ${typeof actual}.`
|
||||
'Expected toBeRejected to be called on a promise but was on a string.'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user