From a83310895125bc0604c97da85a6890d920f7596f Mon Sep 17 00:00:00 2001 From: "Rain Zheng (from Dev Box)" Date: Thu, 14 Nov 2024 12:51:47 +0800 Subject: [PATCH] fix test --- .../test/modelApi/editing/retrieveModelFormatStateTest.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/roosterjs-content-model-dom/test/modelApi/editing/retrieveModelFormatStateTest.ts b/packages/roosterjs-content-model-dom/test/modelApi/editing/retrieveModelFormatStateTest.ts index 9445efee5b6..c80bc063d8a 100644 --- a/packages/roosterjs-content-model-dom/test/modelApi/editing/retrieveModelFormatStateTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelApi/editing/retrieveModelFormatStateTest.ts @@ -814,8 +814,8 @@ describe('retrieveModelFormatState', () => { const model = createContentModelDocument({}); const result: ContentModelFormatState = {}; const para = createParagraph(); - const text1 = createText('test1', { isBold: true, fontFamily: 'Aptos', fontSize: '16pt' }); - const text2 = createText('test2', { isBold: false, fontFamily: 'Arial', fontSize: '12pt' }); + const text1 = createText('test1', { italic: true, fontFamily: 'Aptos', fontSize: '16pt' }); + const text2 = createText('test2', { fontFamily: 'Arial', fontSize: '12pt' }); para.segments.push(text1, text2); text1.isSelected = true; @@ -830,6 +830,7 @@ describe('retrieveModelFormatState', () => { expect(result).toEqual({ isBlockQuote: false, + isBold: false, isSuperscript: false, isSubscript: false, fontName: 'Multiple',