mirror of
https://github.com/mudita/mudita-center.git
synced 2026-02-20 07:58:41 -05:00
29 lines
454 B
TypeScript
29 lines
454 B
TypeScript
/**
|
|
* Copyright (c) Mudita sp. z o.o. All rights reserved.
|
|
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
|
|
*/
|
|
|
|
class PQueue {
|
|
constructor() {
|
|
return this
|
|
}
|
|
add = jest.fn()
|
|
pause = jest.fn()
|
|
clear = jest.fn()
|
|
}
|
|
|
|
jest.doMock("p-queue", () => {
|
|
return {
|
|
__esModule: true,
|
|
default: PQueue,
|
|
}
|
|
})
|
|
|
|
Object.assign(window, {
|
|
electron: {
|
|
ipcRenderer: {
|
|
invoke: jest.fn(),
|
|
},
|
|
},
|
|
})
|