chore: update deps (#14755)

This commit is contained in:
Daniel Dietzler 2024-12-18 15:19:48 +01:00 committed by GitHub
parent a03f4f5610
commit 6a855f6331
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 4610 additions and 14215 deletions

View file

@ -69,6 +69,7 @@
}
showLoadingSpinner = true;
// eslint-disable-next-line unicorn/prefer-global-this
const searchTimeout = window.setTimeout(() => {
if (searchWord === '') {
places = [];

View file

@ -29,6 +29,7 @@
const contextMenuEvent = new MouseEvent('contextmenu', {
bubbles: true,
cancelable: true,
// eslint-disable-next-line unicorn/prefer-global-this
view: window,
clientX: event.x,
clientY: event.y,

View file

@ -5,10 +5,10 @@ import { NotificationType } from '../notification';
import NotificationCard from '../notification-card.svelte';
describe('NotificationCard component', () => {
let sut: RenderResult<NotificationCard>;
let sut: RenderResult<typeof NotificationCard>;
it('disposes timeout if already removed from the DOM', () => {
vi.spyOn(window, 'clearTimeout');
vi.spyOn(globalThis, 'clearTimeout');
sut = render(NotificationCard, {
notification: {
@ -21,7 +21,7 @@ describe('NotificationCard component', () => {
});
cleanup();
expect(window.clearTimeout).toHaveBeenCalledTimes(1);
expect(globalThis.clearTimeout).toHaveBeenCalledTimes(1);
});
it('shows message and title', () => {