import Nav from '../index'; import { clear } from 'jest-date-mock'; import { genBeforeEach, genAfterEach, mount } from '@douyinfe/semi-ui/_test_/utils/tooltip'; import { BASE_CLASS_PREFIX } from '../../../semi-foundation/base/constants'; import { noop } from 'lodash'; describe(`Navigation`, () => { beforeEach(() => { clear(); genBeforeEach()(); }); afterEach(genAfterEach()); it(`test appearance`, async () => { const items = [ { itemKey: 'user', text: '用户管理' }, { itemKey: 'union', text: '公会中心' }, { itemKey: 'union-management', text: '公会管理', items: ['公告设置', '公会查询', '信息录入'], }, { text: '任务平台', itemKey: 'job', items: ['任务管理', '用户任务查询'], }, ]; const nav = mount(