Skip to content

Commit

Permalink
Fix syntax imports
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jul 15, 2023
1 parent e3a89ba commit 245c452
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/unit/modules/syntax.spec.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -221,7 +220,7 @@ describe('Syntax', () => {

describe('allowedChildren', () => {
beforeAll(() => {
CodeBlock.allowedChildren.push(BoldBlot);
CodeBlock.allowedChildren.push(Bold);
});

afterAll(() => {
Expand Down

0 comments on commit 245c452

Please sign in to comment.