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');
|
|
|
|
});
|
|
|
|
});
|