MCPcopy Create free account
hub / github.com/zxlie/FeHelper / loadAndRebuildMenu

Function loadAndRebuildMenu

test/background-menu.test.js:104–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102}
103
104async function loadAndRebuildMenu() {
105 vi.resetModules();
106 const menuModule = await import('../apps/background/menu.js');
107 menuModule.default.rebuild();
108 await vi.advanceTimersByTimeAsync(100);
109 await flushPromises();
110 return menuModule.default;
111}
112
113function getChildMenus(createdMenus) {
114 return createdMenus.filter(item => item.parentId === 'fhm_main' && item.type !== 'separator');

Callers 1

Calls 1

flushPromisesFunction · 0.85

Tested by

no test coverage detected