fix tests

This commit is contained in:
Atul R 2022-09-04 00:13:45 +02:00
parent e326f6fb3e
commit 9a45950bb9
2 changed files with 2 additions and 2 deletions

View File

@ -14,6 +14,6 @@ describe('QMainWindow', () => {
const win = new QMainWindow();
const widget = new QWidget();
win.setCentralWidget(widget);
expect(win.centralWidget).toEqual(widget);
expect(win.centralWidget()).toEqual(widget);
});
});

View File

@ -35,7 +35,7 @@ describe('WrapperCache using CacheTestQObject', () => {
const fooId = foo.native.__id__();
a.clearFoo();
expect(foo.native).toBeNull();
console.log(''); // for some reason this fixes the test in macos
const foo2 = a.foo();
expect(foo2).not.toBe(foo);
expect(foo2.native.__id__()).not.toBe(fooId);