added fix for test

This commit is contained in:
Patrick O'Carroll 2018-04-16 14:49:47 +02:00
parent ce3dcadfef
commit 5200196092

View File

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