Rename allUserAccoutList to allUserAccountList (fix typo)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 17:43:12 +08:00
parent fe4738b04c
commit ba7c1c7cd0
3 changed files with 23 additions and 23 deletions

View File

@@ -44,7 +44,7 @@ describe('acctMgmtStore', () => {
});
it('has correct default state', () => {
expect(store.allUserAccoutList).toEqual([]);
expect(store.allUserAccountList).toEqual([]);
expect(store.isAcctMenuOpen).toBe(false);
});
@@ -70,7 +70,7 @@ describe('acctMgmtStore', () => {
describe('setCurrentViewingUser', () => {
it('finds user by username', () => {
store.allUserAccoutList = [
store.allUserAccountList = [
{ username: 'alice', name: 'Alice', detail: {} },
{ username: 'bob', name: 'Bob', detail: {} },
];
@@ -216,7 +216,7 @@ describe('acctMgmtStore', () => {
describe('hover state actions', () => {
beforeEach(() => {
store.allUserAccoutList = [
store.allUserAccountList = [
{
username: 'alice',
isDeleteHovered: false,
@@ -229,22 +229,22 @@ describe('acctMgmtStore', () => {
it('changeIsDeleteHoveredByUser', () => {
store.changeIsDeleteHoveredByUser('alice', true);
expect(store.allUserAccoutList[0].isDeleteHovered).toBe(true);
expect(store.allUserAccountList[0].isDeleteHovered).toBe(true);
});
it('changeIsRowHoveredByUser', () => {
store.changeIsRowHoveredByUser('alice', true);
expect(store.allUserAccoutList[0].isRowHovered).toBe(true);
expect(store.allUserAccountList[0].isRowHovered).toBe(true);
});
it('changeIsEditHoveredByUser', () => {
store.changeIsEditHoveredByUser('alice', true);
expect(store.allUserAccoutList[0].isEditHovered).toBe(true);
expect(store.allUserAccountList[0].isEditHovered).toBe(true);
});
it('changeIsDetailHoveredByUser', () => {
store.changeIsDetailHoveredByUser('alice', true);
expect(store.allUserAccoutList[0].isDetailHovered).toBe(true);
expect(store.allUserAccountList[0].isDetailHovered).toBe(true);
});
});
@@ -260,12 +260,12 @@ describe('acctMgmtStore', () => {
});
it('updateSingleAccountPiniaState updates user', () => {
store.allUserAccoutList = [
store.allUserAccountList = [
{ username: 'alice', name: 'Old' },
];
store.updateSingleAccountPiniaState({
username: 'alice', name: 'New',
});
expect(store.allUserAccoutList[0].name).toBe('New');
expect(store.allUserAccountList[0].name).toBe('New');
});
});