fix: use nested run loop in clipboard.readImage (#39466)
This commit is contained in:
parent
08bbff5361
commit
cf658b700d
2 changed files with 15 additions and 1 deletions
|
@ -16,6 +16,11 @@ ifdescribe(process.platform !== 'win32' || process.arch !== 'arm64')('clipboard
|
|||
const readImage = clipboard.readImage();
|
||||
expect(readImage.toDataURL()).to.equal(i.toDataURL());
|
||||
});
|
||||
|
||||
it('works for empty image', () => {
|
||||
clipboard.writeText('Not an Image');
|
||||
expect(clipboard.readImage().isEmpty()).to.be.true();
|
||||
});
|
||||
});
|
||||
|
||||
describe('clipboard.readText()', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue