diff --git a/packages/roosterjs-content-model-plugins/test/autoFormat/list/getListTypeStyleTest.ts b/packages/roosterjs-content-model-plugins/test/autoFormat/list/getListTypeStyleTest.ts index 6bc4a2641a7..7b75a84dadf 100644 --- a/packages/roosterjs-content-model-plugins/test/autoFormat/list/getListTypeStyleTest.ts +++ b/packages/roosterjs-content-model-plugins/test/autoFormat/list/getListTypeStyleTest.ts @@ -1005,4 +1005,31 @@ describe('getListTypeStyle', () => { }; runTest(model, undefined); }); + + it('"Constructor" should not trigger list', () => { + const model: ContentModelDocument = { + blockGroupType: 'Document', + blocks: [ + { + blockType: 'Paragraph', + segments: [ + { + segmentType: 'Text', + text: 'constructor', + format: {}, + }, + { + segmentType: 'SelectionMarker', + isSelected: true, + format: {}, + }, + ], + format: {}, + }, + ], + format: {}, + }; + + runTest(model, undefined); + }); }); diff --git a/packages/roosterjs-content-model-plugins/test/autoFormat/numbers/transformFractionTest.ts b/packages/roosterjs-content-model-plugins/test/autoFormat/numbers/transformFractionTest.ts index e1d384b4af2..c53f3cb4948 100644 --- a/packages/roosterjs-content-model-plugins/test/autoFormat/numbers/transformFractionTest.ts +++ b/packages/roosterjs-content-model-plugins/test/autoFormat/numbers/transformFractionTest.ts @@ -85,4 +85,18 @@ describe('transformFraction', () => { }; runTest(segment, paragraph, { canUndoByBackspace: true } as any, false); }); + + it('"constructor"', () => { + const segment: ContentModelText = { + segmentType: 'Text', + text: 'constructor', + format: {}, + }; + const paragraph: ContentModelParagraph = { + blockType: 'Paragraph', + segments: [segment], + format: {}, + }; + runTest(segment, paragraph, { canUndoByBackspace: true } as any, false); + }); });