Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain-Zheng committed Nov 14, 2024
1 parent 5290282 commit a833108
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -830,6 +830,7 @@ describe('retrieveModelFormatState', () => {

expect(result).toEqual({
isBlockQuote: false,
isBold: false,
isSuperscript: false,
isSubscript: false,
fontName: 'Multiple',
Expand Down

0 comments on commit a833108

Please sign in to comment.