mirror of
https://github.com/openharmony/arkXtest.git
synced 2026-07-01 07:47:14 -04:00
hypium Signed-off-by: <wanglongjin1@huawei.com>
Signed-off-by: yuanchao <yuanchao52@h-partners.com>
This commit is contained in:
Vendored
+1
-1
@@ -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 {
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user