()
| 48 | import { isDevMode, openLogsDirectory, takeScreenshot } from './utils'; |
| 49 | |
| 50 | function createMb() { |
| 51 | return { |
| 52 | window: { |
| 53 | capturePage: () => |
| 54 | Promise.resolve({ toPNG: () => Buffer.from('image-bytes') }), |
| 55 | }, |
| 56 | }; |
| 57 | } |
| 58 | |
| 59 | describe('main/utils', () => { |
| 60 | beforeEach(() => { |