mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Nitpicks
This commit is contained in:
parent
ea98bd2e19
commit
d74ed5ab54
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue