refactor: move mockI18n

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-04-11 13:56:05 +02:00
parent 3962cafa5d
commit 86276b0753
35 changed files with 36 additions and 36 deletions

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { AsyncLoadingBoundary } from './async-loading-boundary'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { CustomAsyncLoadingBoundary } from './custom-async-loading-boundary'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { CopyToClipboardButton } from './copy-to-clipboard-button'
import { act, render, screen } from '@testing-library/react' import { act, render, screen } from '@testing-library/react'
import React from 'react' import React from 'react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TranslatedExternalLink } from './translated-external-link'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TranslatedInternalLink } from './translated-internal-link'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { CommonModal } from './common-modal'
import { fireEvent, render, screen } from '@testing-library/react' import { fireEvent, render, screen } from '@testing-library/react'
import React from 'react' import React from 'react'

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import { mockI18n } from '../../../test-utils/mock-i18n'
import { mockNoteOwnership } from '../../../test-utils/note-ownership' import { mockNoteOwnership } from '../../../test-utils/note-ownership'
import { mockI18n } from '../../markdown-renderer/test-utils/mock-i18n'
import { DeletionModal } from './deletion-modal' import { DeletionModal } from './deletion-modal'
import { render, screen } from '@testing-library/react' import { render, screen } from '@testing-library/react'

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import * as UseBaseUrlModule from '../../../hooks/common/use-base-url' import * as UseBaseUrlModule from '../../../hooks/common/use-base-url'
import { mockI18n } from '../../../test-utils/mock-i18n'
import { testId } from '../../../utils/test-id' import { testId } from '../../../utils/test-id'
import * as RenderIframeModule from '../../editor-page/renderer-pane/render-iframe' 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 type { CommonModalProps } from '../modals/common-modal'
import * as CommonModalModule from '../modals/common-modal' import * as CommonModalModule from '../modals/common-modal'
import * as fetchMotdModule from './fetch-motd' import * as fetchMotdModule from './fetch-motd'
@ -22,7 +22,7 @@ jest.mock('../../../hooks/common/use-base-url')
describe('motd modal', () => { describe('motd modal', () => {
beforeAll(async () => { beforeAll(async () => {
jest.spyOn(UseBaseUrlModule, 'useBaseUrl').mockImplementation(() => new URL('https://example.org')) jest.spyOn(UseBaseUrlModule, 'useBaseUrl').mockImplementation(() => 'https://example.org')
await mockI18n() await mockI18n()
}) })

View file

@ -6,7 +6,7 @@
import * as createNoteWithPrimaryAliasModule from '../../../api/notes' import * as createNoteWithPrimaryAliasModule from '../../../api/notes'
import type { Note, NoteMetadata } from '../../../api/notes/types' import type { Note, NoteMetadata } from '../../../api/notes/types'
import * as useSingleStringUrlParameterModule from '../../../hooks/common/use-single-string-url-parameter' 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 { CreateNonExistingNoteHint } from './create-non-existing-note-hint'
import { waitForOtherPromisesToFinish } from '@hedgedoc/commons' import { waitForOtherPromisesToFinish } from '@hedgedoc/commons'
import { act, render, screen, waitFor } from '@testing-library/react' import { act, render, screen, waitFor } from '@testing-library/react'

View file

@ -9,9 +9,9 @@ import type { Note } from '../../../api/notes/types'
import * as LoadingScreenModule from '../../../components/application-loader/loading-screen/loading-screen' import * as LoadingScreenModule from '../../../components/application-loader/loading-screen/loading-screen'
import * as useSingleStringUrlParameterModule from '../../../hooks/common/use-single-string-url-parameter' import * as useSingleStringUrlParameterModule from '../../../hooks/common/use-single-string-url-parameter'
import * as setNoteDataFromServerModule from '../../../redux/note-details/methods' import * as setNoteDataFromServerModule from '../../../redux/note-details/methods'
import { mockI18n } from '../../../test-utils/mock-i18n'
import { testId } from '../../../utils/test-id' import { testId } from '../../../utils/test-id'
import * as CommonErrorPageModule from '../../error-pages/common-error-page' 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 * as CreateNonExistingNoteHintModule from './create-non-existing-note-hint'
import { NoteLoadingBoundary } from './note-loading-boundary' import { NoteLoadingBoundary } from './note-loading-boundary'
import { render, screen } from '@testing-library/react' import { render, screen } from '@testing-library/react'

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { UserInfo } from '../../../api/users/types' 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 { UserAvatarForUser } from './user-avatar-for-user'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -6,8 +6,8 @@
import * as AliasModule from '../../../../api/alias' import * as AliasModule from '../../../../api/alias'
import * as NoteDetailsReduxModule from '../../../../redux/note-details/methods' import * as NoteDetailsReduxModule from '../../../../redux/note-details/methods'
import type { NoteDetails } from '../../../../redux/note-details/types/note-details' 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 { mockNoteOwnership } from '../../../../test-utils/note-ownership'
import { mockI18n } from '../../../markdown-renderer/test-utils/mock-i18n'
import * as useUiNotificationsModule from '../../../notifications/ui-notification-boundary' import * as useUiNotificationsModule from '../../../notifications/ui-notification-boundary'
import { AliasesAddForm } from './aliases-add-form' import { AliasesAddForm } from './aliases-add-form'
import { render, act, screen } from '@testing-library/react' import { render, act, screen } from '@testing-library/react'

View file

@ -6,8 +6,8 @@
import * as AliasModule from '../../../../api/alias' import * as AliasModule from '../../../../api/alias'
import type { Alias } from '../../../../api/alias/types' import type { Alias } from '../../../../api/alias/types'
import * as NoteDetailsReduxModule from '../../../../redux/note-details/methods' import * as NoteDetailsReduxModule from '../../../../redux/note-details/methods'
import { mockI18n } from '../../../../test-utils/mock-i18n'
import { mockNoteOwnership } from '../../../../test-utils/note-ownership' 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 * as useUiNotificationsModule from '../../../notifications/ui-notification-boundary'
import { AliasesListEntry } from './aliases-list-entry' import { AliasesListEntry } from './aliases-list-entry'
import { render, act, screen } from '@testing-library/react' import { render, act, screen } from '@testing-library/react'

View file

@ -5,7 +5,7 @@
*/ */
import type { Alias } from '../../../../api/alias/types' import type { Alias } from '../../../../api/alias/types'
import * as useApplicationStateModule from '../../../../hooks/common/use-application-state' 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 { AliasesList } from './aliases-list'
import * as AliasesListEntryModule from './aliases-list-entry' import * as AliasesListEntryModule from './aliases-list-entry'
import type { AliasesListEntryProps } from './aliases-list-entry' import type { AliasesListEntryProps } from './aliases-list-entry'

View file

@ -3,9 +3,9 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import { mockI18n } from '../../../../test-utils/mock-i18n'
import type { CommonModalProps } from '../../../common/modals/common-modal' import type { CommonModalProps } from '../../../common/modals/common-modal'
import * as CommonModalModule 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 useUiNotificationsModule from '../../../notifications/ui-notification-boundary'
import * as AliasesAddFormModule from './aliases-add-form' import * as AliasesAddFormModule from './aliases-add-form'
import * as AliasesListModule from './aliases-list' import * as AliasesListModule from './aliases-list'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { FrontmatterLinter } from './frontmatter-linter'
import { mockEditorView } from './single-line-regex-linter.spec' import { mockEditorView } from './single-line-regex-linter.spec'
import type { Diagnostic } from '@codemirror/lint' import type { Diagnostic } from '@codemirror/lint'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { SingleLineRegexLinter } from './single-line-regex-linter'
import type { Diagnostic } from '@codemirror/lint' import type { Diagnostic } from '@codemirror/lint'
import type { EditorState, Text } from '@codemirror/state' import type { EditorState, Text } from '@codemirror/state'

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import * as UseApplicationStateModule from '../../../hooks/common/use-application-state' 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 { RealtimeConnectionAlert } from './realtime-connection-alert'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TableOfContents } from './table-of-contents'
import type { TocAst } from '@hedgedoc/markdown-it-plugins' import type { TocAst } from '@hedgedoc/markdown-it-plugins'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { OnOffButtonGroup } from './on-off-button-group'
import { act, render, screen } from '@testing-library/react' import { act, render, screen } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TestMarkdownRenderer } from '../../test-utils/test-markdown-renderer'
import { EmojiMarkdownExtension } from './emoji-markdown-extension' import { EmojiMarkdownExtension } from './emoji-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TestMarkdownRenderer } from '../../test-utils/test-markdown-renderer'
import { LinkifyFixMarkdownExtension } from './linkify-fix-markdown-extension' import { LinkifyFixMarkdownExtension } from './linkify-fix-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { AbcFrame } from './abc-frame'
import { render, screen } from '@testing-library/react' import { render, screen } from '@testing-library/react'
import React from 'react' import React from 'react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' 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 { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer'
import { mockI18n } from '../../../test-utils/mock-i18n'
import * as AbcFrameModule from './abc-frame' import * as AbcFrameModule from './abc-frame'
import { AbcjsMarkdownExtension } from './abcjs-markdown-extension' import { AbcjsMarkdownExtension } from './abcjs-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { IdProps } from '../../../components/markdown-renderer/replace-components/custom-tag-with-id-component-replacer' 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 { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer'
import { mockI18n } from '../../../test-utils/mock-i18n'
import * as AsciinemaFrameModule from './asciinema-frame' import * as AsciinemaFrameModule from './asciinema-frame'
import { AsciinemaMarkdownExtension } from './asciinema-markdown-extension' import { AsciinemaMarkdownExtension } from './asciinema-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' 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 { 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 * as CsvTableModule from '../csv/csv-table'
import { CsvTableMarkdownExtension } from './csv-table-markdown-extension' import { CsvTableMarkdownExtension } from './csv-table-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' 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 { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer'
import { mockI18n } from '../../../test-utils/mock-i18n'
import * as Flowchart from '../flowchart/flowchart' import * as Flowchart from '../flowchart/flowchart'
import { FlowchartMarkdownExtension } from './flowchart-markdown-extension' import { FlowchartMarkdownExtension } from './flowchart-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n'
import { StoreProvider } from '../../../redux/store-provider' import { StoreProvider } from '../../../redux/store-provider'
import { mockI18n } from '../../../test-utils/mock-i18n'
import { FlowChart } from './flowchart' import { FlowChart } from './flowchart'
import * as useMediaQuery from '@restart/hooks/useMediaQuery' import * as useMediaQuery from '@restart/hooks/useMediaQuery'
import { render, screen } from '@testing-library/react' import { render, screen } from '@testing-library/react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' 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 { 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 * as GraphvizFrameModule from '../graphviz/graphviz-frame'
import { GraphvizMarkdownExtension } from './graphviz-markdown-extension' import { GraphvizMarkdownExtension } from './graphviz-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer'
import { mockI18n } from '../../../test-utils/mock-i18n'
import type { HighlightedCodeProps } from './highlighted-code' import type { HighlightedCodeProps } from './highlighted-code'
import * as HighlightedCodeModule from './highlighted-code' import * as HighlightedCodeModule from './highlighted-code'
import { HighlightedCodeMarkdownExtension } from './highlighted-code-markdown-extension' import { HighlightedCodeMarkdownExtension } from './highlighted-code-markdown-extension'

View file

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 HighlightedCode from './highlighted-code'
import { render, screen } from '@testing-library/react' import { render, screen } from '@testing-library/react'

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: AGPL-3.0-only * 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 { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer'
import { mockI18n } from '../../../test-utils/mock-i18n'
import { PlantumlMarkdownExtension } from './plantuml-markdown-extension' import { PlantumlMarkdownExtension } from './plantuml-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'
import React from 'react' import React from 'react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer' 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 { 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 * as VegaLiteChartModule from '../vega-lite/vega-lite-chart'
import { VegaLiteMarkdownExtension } from './vega-lite-markdown-extension' import { VegaLiteMarkdownExtension } from './vega-lite-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { IdProps } from '../../../components/markdown-renderer/replace-components/custom-tag-with-id-component-replacer' 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 { TestMarkdownRenderer } from '../../../components/markdown-renderer/test-utils/test-markdown-renderer'
import { mockI18n } from '../../../test-utils/mock-i18n'
import * as YouTubeFrameModule from './youtube-frame' import * as YouTubeFrameModule from './youtube-frame'
import { YoutubeMarkdownExtension } from './youtube-markdown-extension' import { YoutubeMarkdownExtension } from './youtube-markdown-extension'
import { render } from '@testing-library/react' import { render } from '@testing-library/react'

View file

@ -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 * SPDX-License-Identifier: AGPL-3.0-only
*/ */