5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 05:01:49 +08:00
This commit is contained in:
Fabio Massaioli 2025-02-25 18:09:53 +01:00
parent ea98bd2e19
commit d74ed5ab54
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ export function Call(options: CallOptions): CancellablePromise<any> {
const cancel = () => {
callResponses.delete(id);
return cancelCall(CancelMethod, {"call-id": id}).catch((err) => {
console.log("Error while requesting binding call cancellation:", err);
console.error("Error while requesting binding call cancellation:", err);
});
};

View File

@ -21,7 +21,7 @@ process.on('unhandledRejection', function (reason, promise) {
global.context = global.describe = V.describe;
global.specify = global.it = function it(desc, fn) {
let viTestFn = fn;
if (fn && fn.length) {
if (fn?.length) {
viTestFn = () => new Promise((done) => fn(done));
}
V.it(desc, viTestFn);