mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
[jest] add toHaveBeenNthCalledWith matcher
This commit is contained in:
Vendored
+6
@@ -13,6 +13,7 @@
|
||||
// Ahn <https://github.com/AhnpGit>
|
||||
// Josh Goldberg <https://github.com/joshuakgoldberg>
|
||||
// Bradley Ayers <https://github.com/bradleyayers>
|
||||
// Andrew Makarov <https://github.com/r3nya>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -473,6 +474,11 @@ declare namespace jest {
|
||||
* to test what arguments it was last called with.
|
||||
*/
|
||||
toHaveBeenLastCalledWith(...params: any[]): R;
|
||||
/**
|
||||
* If you have a mock function, you can use `.toHaveBeenNthCalledWith`
|
||||
* to test what arguments it was nth called with.
|
||||
*/
|
||||
toHaveBeenNthCalledWith(nthCall: number, ...params: any[]): R;
|
||||
/**
|
||||
* Used to check that an object has a `.length` property
|
||||
* and it is set to a certain numeric value.
|
||||
|
||||
Reference in New Issue
Block a user