From 245c4522238de38d0bd9205c2f0ff8289f13fc43 Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Sat, 15 Jul 2023 15:56:22 +0800 Subject: [PATCH] Fix syntax imports --- test/unit/modules/syntax.spec.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/unit/modules/syntax.spec.ts b/test/unit/modules/syntax.spec.ts index db5f07ac36..cb05a0730b 100644 --- a/test/unit/modules/syntax.spec.ts +++ b/test/unit/modules/syntax.spec.ts @@ -1,12 +1,11 @@ import hljs from 'highlight.js'; import Delta from 'quill-delta'; -import Quill from '../../../core'; -import BoldBlot from '../../../formats/bold'; -import Syntax, { CodeToken, CodeBlock } from '../../../modules/syntax'; import { afterAll, beforeAll, describe, expect, test } from 'vitest'; -import { normalizeHTML, sleep } from '../__helpers__/utils'; -import { createRegistry } from '../__helpers__/factory'; +import Quill from '../../../core'; import Bold from '../../../formats/bold'; +import Syntax, { CodeBlock, CodeToken } from '../../../modules/syntax'; +import { createRegistry } from '../__helpers__/factory'; +import { normalizeHTML, sleep } from '../__helpers__/utils'; const HIGHLIGHT_INTERVAL = 10; @@ -221,7 +220,7 @@ describe('Syntax', () => { describe('allowedChildren', () => { beforeAll(() => { - CodeBlock.allowedChildren.push(BoldBlot); + CodeBlock.allowedChildren.push(Bold); }); afterAll(() => {