Standardize store exports to named useXxxStore convention
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ vi.mock('@/api/client.js', () => ({
|
||||
vi.mock('@/stores/login.ts', () => {
|
||||
const { defineStore } = require('pinia');
|
||||
return {
|
||||
default: defineStore('loginStore', {
|
||||
useLoginStore: defineStore('loginStore', {
|
||||
state: () => ({
|
||||
userData: { username: 'currentUser', name: 'Current' },
|
||||
}),
|
||||
@@ -27,7 +27,7 @@ vi.mock('@/stores/login.ts', () => {
|
||||
};
|
||||
});
|
||||
|
||||
import useAcctMgmtStore from '@/stores/acctMgmt.ts';
|
||||
import { useAcctMgmtStore } from '@/stores/acctMgmt.ts';
|
||||
|
||||
describe('acctMgmtStore', () => {
|
||||
let store;
|
||||
|
||||
Reference in New Issue
Block a user