How to use the menubar.menubarMock.app function in menubar

To help you get started, we’ve selected a few menubar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GooBox / goobox-community-gui / __tests__ / main / popup / index.js View on Github external
it("registers willQuitEventHandler", async () => {
    const handler = "expected handler";
    willQuitHandler.mockReturnValueOnce(handler);
    await popup();
    expect(menubarMock.app.on).toHaveBeenCalledWith("will-quit", handler);
    expect(willQuitHandler).toHaveBeenCalledWith(menubarMock.app);
  });
github GooBox / goobox-community-gui / __tests__ / main / popup / index.js View on Github external
it("registers willQuitEventHandler", async () => {
    const handler = "expected handler";
    willQuitHandler.mockReturnValueOnce(handler);
    await popup();
    expect(menubarMock.app.on).toHaveBeenCalledWith("will-quit", handler);
    expect(willQuitHandler).toHaveBeenCalledWith(menubarMock.app);
  });

menubar

high level way to create menubar desktop applications with electron

BSD-2-Clause
Latest version published 25 days ago

Package Health Score

87 / 100
Full package analysis