Fix test and unused import

Signed-off-by: Marcus Eide <eide@spotify.com>
This commit is contained in:
Marcus Eide
2021-04-30 15:25:51 +02:00
parent 44fc883189
commit cea80105ec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
import { render, screen, waitFor } from '@testing-library/react';
import { ShortcutItem } from './ShortcutItem';
import { Shortcut } from './types';
import { SidebarContext } from '@backstage/core';
@@ -69,7 +69,7 @@ describe('LocalStoredShortcuts', () => {
const shortcut: Shortcut = { id: 'someid', title: 'title', url: '/url' };
const spy = jest.spyOn(storageApi, 'set');
await shortcutApi.remove(shortcut);
await shortcutApi.remove(shortcut.id);
expect(spy).toHaveBeenCalledWith('items', []);
});