mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
added fix for test
This commit is contained in:
parent
ce3dcadfef
commit
5200196092
@ -11,7 +11,7 @@ describe('PermissionsStore', () => {
|
||||
{ id: 3, dashboardId: 1, role: 'Editor', permission: 1, permissionName: 'Edit' },
|
||||
{
|
||||
id: 4,
|
||||
dashboardId: 1,
|
||||
dashboardId: 10,
|
||||
permission: 1,
|
||||
permissionName: 'View',
|
||||
teamId: 1,
|
||||
@ -53,7 +53,7 @@ describe('PermissionsStore', () => {
|
||||
|
||||
it('should save update on permission change', async () => {
|
||||
expect(store.items[0].permission).toBe(1);
|
||||
expect(store.items[0].permissionName).toBe('Edit');
|
||||
expect(store.items[0].permissionName).toBe('View');
|
||||
|
||||
await store.updatePermissionOnIndex(0, 2, 'Edit');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user