mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 05:01:49 +08:00
Nitpicks
This commit is contained in:
parent
ea98bd2e19
commit
d74ed5ab54
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user