mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fix lint
This commit is contained in:
parent
0ed964b211
commit
392fee843e
1 changed files with 4 additions and 5 deletions
|
|
@ -38,11 +38,10 @@ test.before(async () => {
|
||||||
|
|
||||||
test.after(async () => {
|
test.after(async () => {
|
||||||
await app
|
await app
|
||||||
.evaluate(
|
.evaluate(({BrowserWindow}) =>
|
||||||
({BrowserWindow}) =>
|
BrowserWindow.getFocusedWindow()
|
||||||
BrowserWindow.getFocusedWindow()
|
?.capturePage()
|
||||||
?.capturePage()
|
.then((img) => img.toPNG().toString('base64'))
|
||||||
.then((img) => img.toPNG().toString('base64'))
|
|
||||||
)
|
)
|
||||||
.then((img) => Buffer.from(img || '', 'base64'))
|
.then((img) => Buffer.from(img || '', 'base64'))
|
||||||
.then(async (imageBuffer) => {
|
.then(async (imageBuffer) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue