Fix test and unused import
Signed-off-by: Marcus Eide <eide@spotify.com>
This commit is contained in:
@@ -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', []);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user