Signed-off-by: yuanchao <yuanchao52@h-partners.com>
This commit is contained in:
yuanchao
2022-09-17 23:29:06 +08:00
parent 8e75ed62b7
commit 1b67cf4860
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ declare interface when {
afterReturnNothing(): undefined
afterAction(action: any): any
afterThrow(e_msg: string): string
(argMatchers: any): when;
(argMatchers?: any): when;
}
export interface VerificationMode {
+6
View File
@@ -94,6 +94,9 @@ class MockKit {
values = new Map();
}
let key = params[0];
if (typeof key == "undefined") {
key = "hypium-mock-" + f.propName;
}
let matcher = new ArgumentMatchers();
if (matcher.matcheStubKey(key)) {
key = matcher.matcheStubKey(key);
@@ -111,6 +114,9 @@ class MockKit {
return undefined;
}
let retrunKet = params[0];
if (typeof retrunKet == "undefined") {
retrunKet = "hypium-mock-" + f.propName;
}
let stubSetKey = this.currentSetKey;
if (this.currentSetKey && (typeof (retrunKet) != "undefined")) {