text: const getDetails = (details, cb) => {
    if (cb !== undefined) {
      return cb();
    }
    return Promise.resolve();
  };
  export const browserAction = {
    setTitle: jest.fn(),
    getTitle: jest.fn(getDetails),
    setIcon: jest.fn(getDetails),
    setPopup: jest.fn(),
    getPopup: jest.fn(getDetails),
    setBadgeText: jest.fn(),
    getBadgeText: jest.fn(getDetails),
    setBadgeBackgroundColor: jest.fn(),
    getBadgeBackgroundColor: jest.fn(getDetails),
    enable: jest.fn(),
    disable: jest.fn(),
    onClicked: {
      addListener: jest.fn(),
    },
  };
  