You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,8 +103,8 @@ The returned stub function can be called like a normal function and includes add
103
103
104
104
-`getCalls(): any[]` — Returns an array of all calls made to the stub (each call is an array of arguments).
105
105
-`clear(): Stub` — Clears recorded calls and resets internal expectations.
106
-
-`setExpectedArgs(...args: any[]): Stub` — Defines the exact arguments the stub expects to receive. If the stub is called with different arguments, it throws an error.
107
-
-`setReturnValue(value: any): Stub` — Sets the value that the stub should return when called.
106
+
-`expects(...args: any[]): Stub` — Defines the exact arguments the stub expects to receive. If the stub is called with different arguments, it throws an error.
107
+
-`returns(value: any): Stub` — Sets the value that the stub should return when called.
108
108
-`throws(error: Error): Stub` — Configures the stub to throw the specified error when called.
109
109
110
110
#### Stub Type Definition
@@ -113,8 +113,8 @@ The returned stub function can be called like a normal function and includes add
0 commit comments