Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("starts the initialization process immediately", () => {
expect(menubar).toHaveBeenCalledWith({
index: "file://" + path.join(__dirname, "../../static/popup.html"),
icon: expect.anything(),
tooltip: app.getName(),
preloadWindow: true,
width: 518,
height: 400,
alwaysOnTop: true,
showDockIcon: false,
});
expect(menuberMock.showWindow).toHaveBeenCalled();
});
beforeAll(() => {
app.isReady.mockReturnValue(true);
menuberMock.tray.listeners.mockReturnValue([() => null]);
menubar.mockClear();
menuberMock.showWindow.mockClear();
storage.get.mockReset();
storage.get.mockImplementation(() => {
});
require("../../src/main/main");
});