sync: 同步管理前端 v1.0.4 并脱敏
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
|
||||
import { startProgress, stopProgress } from '@vben-core/shared/utils';
|
||||
|
||||
import { createPinia, setActivePinia } from 'pinia';
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
vi.mock('@vben-core/shared/utils', async (importOriginal) => {
|
||||
const actual =
|
||||
await importOriginal<typeof import('@vben-core/shared/utils')>();
|
||||
return { ...actual, startProgress: vi.fn(), stopProgress: vi.fn() };
|
||||
});
|
||||
|
||||
import { useTabbarStore } from './tabbar';
|
||||
|
||||
describe('useAccessStore', () => {
|
||||
@@ -321,5 +329,7 @@ describe('useAccessStore', () => {
|
||||
|
||||
expect(store.excludeCachedTabs.has('Dashboard')).toBe(false);
|
||||
expect(store.renderRouteView).toBe(true);
|
||||
expect(startProgress).toHaveBeenCalledTimes(1);
|
||||
expect(stopProgress).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user