mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 23:28:34 -04:00
feat: add settings dialog
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
39823275a0
commit
4e18ce38f3
45 changed files with 656 additions and 376 deletions
|
@ -9,12 +9,18 @@ import { FlowChart } from './flowchart'
|
|||
import type * as flowchartJsModule from 'flowchart.js'
|
||||
import { mockI18n } from '../../../components/markdown-renderer/test-utils/mock-i18n'
|
||||
import { StoreProvider } from '../../../redux/store-provider'
|
||||
import * as useMediaQuery from '@restart/hooks/useMediaQuery'
|
||||
|
||||
jest.mock('@restart/hooks/useMediaQuery')
|
||||
|
||||
describe('Flowchart', () => {
|
||||
const successText = 'Flowchart rendering succeeded!'
|
||||
const expectedValidFlowchartCode = 'test code'
|
||||
|
||||
beforeAll(() => mockI18n())
|
||||
beforeAll(async () => {
|
||||
jest.spyOn(useMediaQuery, 'default').mockImplementation(() => false)
|
||||
await mockI18n()
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
jest.resetModules()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue