mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-10 09:23:15 +08:00
@@ -22,7 +22,7 @@ describe('useAccessStore', () => {
|
||||
expect(store.userInfo).toBeNull();
|
||||
expect(store.userRoles).toEqual([]);
|
||||
|
||||
const userInfo: any = { name: 'John Doe', roles: [{ value: 'admin' }] };
|
||||
const userInfo: any = { name: 'John Doe', roles: ['admin'] };
|
||||
store.setUserInfo(userInfo);
|
||||
|
||||
expect(store.userInfo).toEqual(userInfo);
|
||||
|
||||
Reference in New Issue
Block a user