Files
ruoyi-plus-vben5/apps/antd-view/src/store/modules/example.test.ts

25 lines
605 B
TypeScript
Raw Normal View History

2024-05-19 21:20:42 +08:00
import { createPinia, setActivePinia } from 'pinia';
import {
// beforeEach,
describe,
// expect,
it,
} from 'vitest';
// import { useAccessStore } from '../modules/access';
2024-06-01 23:15:29 +08:00
describe('useCounterStore', () => {
2024-05-19 21:20:42 +08:00
it('app Name with test', () => {
setActivePinia(createPinia());
2024-06-01 23:15:29 +08:00
// let referenceStore = usePreferencesStore();
2024-05-19 21:20:42 +08:00
// beforeEach(() => {
2024-06-01 23:15:29 +08:00
// referenceStore = usePreferencesStore();
2024-05-19 21:20:42 +08:00
// });
// expect(referenceStore.appName).toBe('vben-admin');
// referenceStore.setAppName('vbenAdmin');
// expect(referenceStore.getAppName).toBe('vbenAdmin');
});
});