How to use the menubar.menuberMock.showWindow 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 / main-from-installer.js View on Github external
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();
  });
github GooBox / goobox-community-gui / __tests__ / main / main-from-installer.js View on Github external
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");
  });

menubar

high level way to create menubar desktop applications with electron

BSD-2-Clause
Latest version published 1 month ago

Package Health Score

87 / 100
Full package analysis