diff --git a/packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx b/packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx deleted file mode 100644 index f4a0536183..0000000000 --- a/packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx +++ /dev/null @@ -1,49 +0,0 @@ -/** @jsx jsxt */ - -import { createSlateEditor } from '@udecode/plate-common'; -import { ParagraphPlugin } from '@udecode/plate-common/react'; -import { HEADING_KEYS } from '@udecode/plate-heading'; -import { jsxt } from '@udecode/plate-test-utils'; - -import { NormalizeTypesPlugin } from '../../lib/NormalizeTypesPlugin'; - -jsxt; - -const input = ( - - - - - -) as any; - -const output = ( - - - - - -) as any; - -it('should be', () => { - const editor = createSlateEditor({ - editor: input, - plugins: [ - NormalizeTypesPlugin.configure({ - options: { - rules: [ - { - path: [0, 0], - strictType: HEADING_KEYS.h1, - }, - { path: [0, 1], type: ParagraphPlugin.key }, - ], - }, - }), - ], - }); - - editor.normalizeNode([input, []]); - - expect(input.children).toEqual(output.children); -});