diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-06-27 11:44:59 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-06-27 16:16:41 +0200 |
commit | cd54f7c7f432e7a88f81c1d453798812edff0459 (patch) | |
tree | ea64c844770fd75d08df0e6ee121654e0742799f /apps/files/src/actions/openFolderAction.spec.ts | |
parent | 4cfab4b838ed40dec200f7673992009896c69f16 (diff) | |
download | nextcloud-server-cd54f7c7f432e7a88f81c1d453798812edff0459.tar.gz nextcloud-server-cd54f7c7f432e7a88f81c1d453798812edff0459.zip |
chore: upgrade typescript, eslint and fix lint
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/actions/openFolderAction.spec.ts')
-rw-r--r-- | apps/files/src/actions/openFolderAction.spec.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/src/actions/openFolderAction.spec.ts b/apps/files/src/actions/openFolderAction.spec.ts index 07502be2eed..140b6722608 100644 --- a/apps/files/src/actions/openFolderAction.spec.ts +++ b/apps/files/src/actions/openFolderAction.spec.ts @@ -21,7 +21,7 @@ */ import { action } from './openFolderAction' import { expect } from '@jest/globals' -import { File, Folder, Permission } from '@nextcloud/files' +import { File, Folder, Node, Permission } from '@nextcloud/files' import { FileAction } from '../services/FileAction' import type { Navigation } from '../services/Navigation' @@ -139,8 +139,7 @@ describe('Open folder action execute tests', () => { const goToRouteMock = jest.fn() window.OCP = { Files: { Router: { goToRoute: goToRouteMock } } } - // @ts-ignore null as Node - const exec = await action.exec(null, view, '/') + const exec = await action.exec(null as unknown as Node, view, '/') expect(exec).toBe(false) expect(goToRouteMock).toBeCalledTimes(0) }) |