fix tests
This commit is contained in:
parent
e326f6fb3e
commit
9a45950bb9
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user