diff --git a/frontend/src/components/common/async-loading-boundary/async-loading-boundary.spec.tsx b/frontend/src/components/common/async-loading-boundary/async-loading-boundary.spec.tsx index 828cfa99a..cc636ee45 100644 --- a/frontend/src/components/common/async-loading-boundary/async-loading-boundary.spec.tsx +++ b/frontend/src/components/common/async-loading-boundary/async-loading-boundary.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { AsyncLoadingBoundary } from './async-loading-boundary' import { render } from '@testing-library/react' diff --git a/frontend/src/components/common/async-loading-boundary/custom-async-loading-boundary.spec.tsx b/frontend/src/components/common/async-loading-boundary/custom-async-loading-boundary.spec.tsx index 5b4527810..830a64559 100644 --- a/frontend/src/components/common/async-loading-boundary/custom-async-loading-boundary.spec.tsx +++ b/frontend/src/components/common/async-loading-boundary/custom-async-loading-boundary.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { CustomAsyncLoadingBoundary } from './custom-async-loading-boundary' import { render } from '@testing-library/react' diff --git a/frontend/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.spec.tsx b/frontend/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.spec.tsx index 982509bcc..7efc8867b 100644 --- a/frontend/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.spec.tsx +++ b/frontend/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { CopyToClipboardButton } from './copy-to-clipboard-button' import { act, render, screen } from '@testing-library/react' import React from 'react' diff --git a/frontend/src/components/common/links/translated-external-link.spec.tsx b/frontend/src/components/common/links/translated-external-link.spec.tsx index 69a891a3a..31ae022fd 100644 --- a/frontend/src/components/common/links/translated-external-link.spec.tsx +++ b/frontend/src/components/common/links/translated-external-link.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { TranslatedExternalLink } from './translated-external-link' import { render } from '@testing-library/react' diff --git a/frontend/src/components/common/links/translated-internal-link.spec.tsx b/frontend/src/components/common/links/translated-internal-link.spec.tsx index 5b3575bf5..8a0e99ec8 100644 --- a/frontend/src/components/common/links/translated-internal-link.spec.tsx +++ b/frontend/src/components/common/links/translated-internal-link.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { TranslatedInternalLink } from './translated-internal-link' import { render } from '@testing-library/react' diff --git a/frontend/src/components/common/modals/common-modal.spec.tsx b/frontend/src/components/common/modals/common-modal.spec.tsx index 20d044579..de4bcf75c 100644 --- a/frontend/src/components/common/modals/common-modal.spec.tsx +++ b/frontend/src/components/common/modals/common-modal.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { CommonModal } from './common-modal' import { fireEvent, render, screen } from '@testing-library/react' import React from 'react' diff --git a/frontend/src/components/common/modals/deletion-moadal.spec.tsx b/frontend/src/components/common/modals/deletion-moadal.spec.tsx index 6d6f3e26a..38004077c 100644 --- a/frontend/src/components/common/modals/deletion-moadal.spec.tsx +++ b/frontend/src/components/common/modals/deletion-moadal.spec.tsx @@ -3,8 +3,8 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ +import { mockI18n } from '../../../test-utils/mock-i18n' import { mockNoteOwnership } from '../../../test-utils/note-ownership' -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' import { DeletionModal } from './deletion-modal' import { render, screen } from '@testing-library/react' diff --git a/frontend/src/components/common/motd-modal/motd-modal.spec.tsx b/frontend/src/components/common/motd-modal/motd-modal.spec.tsx index bede7f878..ff62ddbb8 100644 --- a/frontend/src/components/common/motd-modal/motd-modal.spec.tsx +++ b/frontend/src/components/common/motd-modal/motd-modal.spec.tsx @@ -4,9 +4,9 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import * as UseBaseUrlModule from '../../../hooks/common/use-base-url' +import { mockI18n } from '../../../test-utils/mock-i18n' import { testId } from '../../../utils/test-id' import * as RenderIframeModule from '../../editor-page/renderer-pane/render-iframe' -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' import type { CommonModalProps } from '../modals/common-modal' import * as CommonModalModule from '../modals/common-modal' import * as fetchMotdModule from './fetch-motd' @@ -22,7 +22,7 @@ jest.mock('../../../hooks/common/use-base-url') describe('motd modal', () => { beforeAll(async () => { - jest.spyOn(UseBaseUrlModule, 'useBaseUrl').mockImplementation(() => new URL('https://example.org')) + jest.spyOn(UseBaseUrlModule, 'useBaseUrl').mockImplementation(() => 'https://example.org') await mockI18n() }) diff --git a/frontend/src/components/common/note-loading-boundary/create-non-existing-note-hint.spec.tsx b/frontend/src/components/common/note-loading-boundary/create-non-existing-note-hint.spec.tsx index c0aa75ae2..d32aff7d7 100644 --- a/frontend/src/components/common/note-loading-boundary/create-non-existing-note-hint.spec.tsx +++ b/frontend/src/components/common/note-loading-boundary/create-non-existing-note-hint.spec.tsx @@ -6,7 +6,7 @@ import * as createNoteWithPrimaryAliasModule from '../../../api/notes' import type { Note, NoteMetadata } from '../../../api/notes/types' import * as useSingleStringUrlParameterModule from '../../../hooks/common/use-single-string-url-parameter' -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { CreateNonExistingNoteHint } from './create-non-existing-note-hint' import { waitForOtherPromisesToFinish } from '@hedgedoc/commons' import { act, render, screen, waitFor } from '@testing-library/react' diff --git a/frontend/src/components/common/note-loading-boundary/note-loading-boundary.spec.tsx b/frontend/src/components/common/note-loading-boundary/note-loading-boundary.spec.tsx index 10c676bec..484a2eb38 100644 --- a/frontend/src/components/common/note-loading-boundary/note-loading-boundary.spec.tsx +++ b/frontend/src/components/common/note-loading-boundary/note-loading-boundary.spec.tsx @@ -9,9 +9,9 @@ import type { Note } from '../../../api/notes/types' import * as LoadingScreenModule from '../../../components/application-loader/loading-screen/loading-screen' import * as useSingleStringUrlParameterModule from '../../../hooks/common/use-single-string-url-parameter' import * as setNoteDataFromServerModule from '../../../redux/note-details/methods' +import { mockI18n } from '../../../test-utils/mock-i18n' import { testId } from '../../../utils/test-id' import * as CommonErrorPageModule from '../../error-pages/common-error-page' -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' import * as CreateNonExistingNoteHintModule from './create-non-existing-note-hint' import { NoteLoadingBoundary } from './note-loading-boundary' import { render, screen } from '@testing-library/react' diff --git a/frontend/src/components/common/user-avatar/user-avatar.spec.tsx b/frontend/src/components/common/user-avatar/user-avatar.spec.tsx index 23762979b..3f59e1910 100644 --- a/frontend/src/components/common/user-avatar/user-avatar.spec.tsx +++ b/frontend/src/components/common/user-avatar/user-avatar.spec.tsx @@ -4,7 +4,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { UserInfo } from '../../../api/users/types' -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { UserAvatarForUser } from './user-avatar-for-user' import { render } from '@testing-library/react' diff --git a/frontend/src/components/editor-page/document-bar/aliases/aliases-add-form.spec.tsx b/frontend/src/components/editor-page/document-bar/aliases/aliases-add-form.spec.tsx index ce6b26481..bdd18b4f4 100644 --- a/frontend/src/components/editor-page/document-bar/aliases/aliases-add-form.spec.tsx +++ b/frontend/src/components/editor-page/document-bar/aliases/aliases-add-form.spec.tsx @@ -6,8 +6,8 @@ import * as AliasModule from '../../../../api/alias' import * as NoteDetailsReduxModule from '../../../../redux/note-details/methods' import type { NoteDetails } from '../../../../redux/note-details/types/note-details' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { mockNoteOwnership } from '../../../../test-utils/note-ownership' -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' import * as useUiNotificationsModule from '../../../notifications/ui-notification-boundary' import { AliasesAddForm } from './aliases-add-form' import { render, act, screen } from '@testing-library/react' diff --git a/frontend/src/components/editor-page/document-bar/aliases/aliases-list-entry.spec.tsx b/frontend/src/components/editor-page/document-bar/aliases/aliases-list-entry.spec.tsx index a03ac7767..d64c5597d 100644 --- a/frontend/src/components/editor-page/document-bar/aliases/aliases-list-entry.spec.tsx +++ b/frontend/src/components/editor-page/document-bar/aliases/aliases-list-entry.spec.tsx @@ -6,8 +6,8 @@ import * as AliasModule from '../../../../api/alias' import type { Alias } from '../../../../api/alias/types' import * as NoteDetailsReduxModule from '../../../../redux/note-details/methods' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { mockNoteOwnership } from '../../../../test-utils/note-ownership' -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' import * as useUiNotificationsModule from '../../../notifications/ui-notification-boundary' import { AliasesListEntry } from './aliases-list-entry' import { render, act, screen } from '@testing-library/react' diff --git a/frontend/src/components/editor-page/document-bar/aliases/aliases-list.spec.tsx b/frontend/src/components/editor-page/document-bar/aliases/aliases-list.spec.tsx index 39ec71e27..0d6047b01 100644 --- a/frontend/src/components/editor-page/document-bar/aliases/aliases-list.spec.tsx +++ b/frontend/src/components/editor-page/document-bar/aliases/aliases-list.spec.tsx @@ -5,7 +5,7 @@ */ import type { Alias } from '../../../../api/alias/types' import * as useApplicationStateModule from '../../../../hooks/common/use-application-state' -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { AliasesList } from './aliases-list' import * as AliasesListEntryModule from './aliases-list-entry' import type { AliasesListEntryProps } from './aliases-list-entry' diff --git a/frontend/src/components/editor-page/document-bar/aliases/aliases-modal.spec.tsx b/frontend/src/components/editor-page/document-bar/aliases/aliases-modal.spec.tsx index 2cc59222f..8f09b2c5e 100644 --- a/frontend/src/components/editor-page/document-bar/aliases/aliases-modal.spec.tsx +++ b/frontend/src/components/editor-page/document-bar/aliases/aliases-modal.spec.tsx @@ -3,9 +3,9 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ +import { mockI18n } from '../../../../test-utils/mock-i18n' import type { CommonModalProps } from '../../../common/modals/common-modal' import * as CommonModalModule from '../../../common/modals/common-modal' -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' import * as useUiNotificationsModule from '../../../notifications/ui-notification-boundary' import * as AliasesAddFormModule from './aliases-add-form' import * as AliasesListModule from './aliases-list' diff --git a/frontend/src/components/editor-page/editor-pane/linter/frontmatter-linter.spec.ts b/frontend/src/components/editor-page/editor-pane/linter/frontmatter-linter.spec.ts index 6a91a538b..8e2a73d9d 100644 --- a/frontend/src/components/editor-page/editor-pane/linter/frontmatter-linter.spec.ts +++ b/frontend/src/components/editor-page/editor-pane/linter/frontmatter-linter.spec.ts @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { FrontmatterLinter } from './frontmatter-linter' import { mockEditorView } from './single-line-regex-linter.spec' import type { Diagnostic } from '@codemirror/lint' diff --git a/frontend/src/components/editor-page/editor-pane/linter/single-line-regex-linter.spec.ts b/frontend/src/components/editor-page/editor-pane/linter/single-line-regex-linter.spec.ts index 6f0d82a3a..af16c24b6 100644 --- a/frontend/src/components/editor-page/editor-pane/linter/single-line-regex-linter.spec.ts +++ b/frontend/src/components/editor-page/editor-pane/linter/single-line-regex-linter.spec.ts @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { SingleLineRegexLinter } from './single-line-regex-linter' import type { Diagnostic } from '@codemirror/lint' import type { EditorState, Text } from '@codemirror/state' diff --git a/frontend/src/components/editor-page/realtime-connection-alert/realtime-connection-alert.spec.tsx b/frontend/src/components/editor-page/realtime-connection-alert/realtime-connection-alert.spec.tsx index 27e2e4248..fee16a247 100644 --- a/frontend/src/components/editor-page/realtime-connection-alert/realtime-connection-alert.spec.tsx +++ b/frontend/src/components/editor-page/realtime-connection-alert/realtime-connection-alert.spec.tsx @@ -4,7 +4,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import * as UseApplicationStateModule from '../../../hooks/common/use-application-state' -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { RealtimeConnectionAlert } from './realtime-connection-alert' import { render } from '@testing-library/react' diff --git a/frontend/src/components/editor-page/table-of-contents/table-of-contents.spec.tsx b/frontend/src/components/editor-page/table-of-contents/table-of-contents.spec.tsx index d72b00961..62bcd8fbb 100644 --- a/frontend/src/components/editor-page/table-of-contents/table-of-contents.spec.tsx +++ b/frontend/src/components/editor-page/table-of-contents/table-of-contents.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { TableOfContents } from './table-of-contents' import type { TocAst } from '@hedgedoc/markdown-it-plugins' import { render } from '@testing-library/react' diff --git a/frontend/src/components/layout/settings-dialog/utils/on-off-button-group.spec.tsx b/frontend/src/components/layout/settings-dialog/utils/on-off-button-group.spec.tsx index de6d335e4..85abd21ab 100644 --- a/frontend/src/components/layout/settings-dialog/utils/on-off-button-group.spec.tsx +++ b/frontend/src/components/layout/settings-dialog/utils/on-off-button-group.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { OnOffButtonGroup } from './on-off-button-group' import { act, render, screen } from '@testing-library/react' diff --git a/frontend/src/components/markdown-renderer/extensions/emoji/emoji-markdown-extension.spec.tsx b/frontend/src/components/markdown-renderer/extensions/emoji/emoji-markdown-extension.spec.tsx index 8e618774c..fe420f990 100644 --- a/frontend/src/components/markdown-renderer/extensions/emoji/emoji-markdown-extension.spec.tsx +++ b/frontend/src/components/markdown-renderer/extensions/emoji/emoji-markdown-extension.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../test-utils/test-markdown-renderer' import { EmojiMarkdownExtension } from './emoji-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/components/markdown-renderer/extensions/linkify-fix/linkify-fix-markdown-extension.spec.tsx b/frontend/src/components/markdown-renderer/extensions/linkify-fix/linkify-fix-markdown-extension.spec.tsx index 3687586e7..53b30b08f 100644 --- a/frontend/src/components/markdown-renderer/extensions/linkify-fix/linkify-fix-markdown-extension.spec.tsx +++ b/frontend/src/components/markdown-renderer/extensions/linkify-fix/linkify-fix-markdown-extension.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../test-utils/mock-i18n' +import { mockI18n } from '../../../../test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../test-utils/test-markdown-renderer' import { LinkifyFixMarkdownExtension } from './linkify-fix-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/abcjs/abc-frame.spec.tsx b/frontend/src/extensions/extra-integrations/abcjs/abc-frame.spec.tsx index b5094c84a..746450e41 100644 --- a/frontend/src/extensions/extra-integrations/abcjs/abc-frame.spec.tsx +++ b/frontend/src/extensions/extra-integrations/abcjs/abc-frame.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import { AbcFrame } from './abc-frame' import { render, screen } from '@testing-library/react' import React from 'react' diff --git a/frontend/src/extensions/extra-integrations/abcjs/abcjs-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/abcjs/abcjs-markdown-extension.spec.tsx index 6fdb580cb..0117a8b50 100644 --- a/frontend/src/extensions/extra-integrations/abcjs/abcjs-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/abcjs/abcjs-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as AbcFrameModule from './abc-frame' import { AbcjsMarkdownExtension } from './abcjs-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/asciinema/asciinema-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/asciinema/asciinema-markdown-extension.spec.tsx index 8d8887aa0..e4314d3dd 100644 --- a/frontend/src/extensions/extra-integrations/asciinema/asciinema-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/asciinema/asciinema-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { IdProps } from '../../../components/markdown-renderer/replace-components/custom-tag-with-id-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as AsciinemaFrameModule from './asciinema-frame' import { AsciinemaMarkdownExtension } from './asciinema-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/csv/csv-table-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/csv/csv-table-markdown-extension.spec.tsx index 3e56f61cf..691ca7502 100644 --- a/frontend/src/extensions/extra-integrations/csv/csv-table-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/csv/csv-table-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as CsvTableModule from '../csv/csv-table' import { CsvTableMarkdownExtension } from './csv-table-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/flowchart/flowchart-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/flowchart/flowchart-markdown-extension.spec.tsx index a0ffb3ee5..276e3c0d6 100644 --- a/frontend/src/extensions/extra-integrations/flowchart/flowchart-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/flowchart/flowchart-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as Flowchart from '../flowchart/flowchart' import { FlowchartMarkdownExtension } from './flowchart-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/flowchart/flowchart.spec.tsx b/frontend/src/extensions/extra-integrations/flowchart/flowchart.spec.tsx index 153704b53..62d37da3e 100644 --- a/frontend/src/extensions/extra-integrations/flowchart/flowchart.spec.tsx +++ b/frontend/src/extensions/extra-integrations/flowchart/flowchart.spec.tsx @@ -3,8 +3,8 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { StoreProvider } from '../../../redux/store-provider' +import { mockI18n } from '../../../test-utils/mock-i18n' import { FlowChart } from './flowchart' import * as useMediaQuery from '@restart/hooks/useMediaQuery' import { render, screen } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/graphviz/graphviz-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/graphviz/graphviz-markdown-extension.spec.tsx index 288f46937..308cd5f38 100644 --- a/frontend/src/extensions/extra-integrations/graphviz/graphviz-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/graphviz/graphviz-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as GraphvizFrameModule from '../graphviz/graphviz-frame' import { GraphvizMarkdownExtension } from './graphviz-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code-markdown-extension.spec.tsx index 7dc214a10..2512933a8 100644 --- a/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code-markdown-extension.spec.tsx @@ -3,8 +3,8 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import type { HighlightedCodeProps } from './highlighted-code' import * as HighlightedCodeModule from './highlighted-code' import { HighlightedCodeMarkdownExtension } from './highlighted-code-markdown-extension' diff --git a/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code.spec.tsx b/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code.spec.tsx index 7faa2d592..bf8fa0495 100644 --- a/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code.spec.tsx +++ b/frontend/src/extensions/extra-integrations/highlighted-code-fence/highlighted-code.spec.tsx @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' +import { mockI18n } from '../../../test-utils/mock-i18n' import HighlightedCode from './highlighted-code' import { render, screen } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/plantuml/plantuml-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/plantuml/plantuml-markdown-extension.spec.tsx index 71f6370bd..2697c6c37 100644 --- a/frontend/src/extensions/extra-integrations/plantuml/plantuml-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/plantuml/plantuml-markdown-extension.spec.tsx @@ -3,8 +3,8 @@ * * SPDX-License-Identifier: AGPL-3.0-only */ -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import { PlantumlMarkdownExtension } from './plantuml-markdown-extension' import { render } from '@testing-library/react' import React from 'react' diff --git a/frontend/src/extensions/extra-integrations/vega-lite/vega-lite-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/vega-lite/vega-lite-markdown-extension.spec.tsx index 0435916d5..f80f83f10 100644 --- a/frontend/src/extensions/extra-integrations/vega-lite/vega-lite-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/vega-lite/vega-lite-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as VegaLiteChartModule from '../vega-lite/vega-lite-chart' import { VegaLiteMarkdownExtension } from './vega-lite-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/extensions/extra-integrations/youtube/youtube-markdown-extension.spec.tsx b/frontend/src/extensions/extra-integrations/youtube/youtube-markdown-extension.spec.tsx index 81bb7013a..33e283a70 100644 --- a/frontend/src/extensions/extra-integrations/youtube/youtube-markdown-extension.spec.tsx +++ b/frontend/src/extensions/extra-integrations/youtube/youtube-markdown-extension.spec.tsx @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import type { IdProps } from '../../../components/markdown-renderer/replace-components/custom-tag-with-id-component-replacer' -import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n' import { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer' +import { mockI18n } from '../../../test-utils/mock-i18n' import * as YouTubeFrameModule from './youtube-frame' import { YoutubeMarkdownExtension } from './youtube-markdown-extension' import { render } from '@testing-library/react' diff --git a/frontend/src/components/markdown-renderer/test-utils/mock-i18n.ts b/frontend/src/test-utils/mock-i18n.ts similarity index 91% rename from frontend/src/components/markdown-renderer/test-utils/mock-i18n.ts rename to frontend/src/test-utils/mock-i18n.ts index 7a64fa7b0..6be2f3a07 100644 --- a/frontend/src/components/markdown-renderer/test-utils/mock-i18n.ts +++ b/frontend/src/test-utils/mock-i18n.ts @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) + * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */