Skip to content

Commit

Permalink
Fix build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong committed Nov 21, 2024
1 parent 36883a4 commit 8268e4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ describe('formatContentModel', () => {

expect(core.format.pendingFormat).toEqual({
format: mockedFormat1,
paragraphFormat: undefined,
insertPoint: {
node: mockedStartContainer2,
offset: mockedStartOffset2,
Expand All @@ -694,6 +695,7 @@ describe('formatContentModel', () => {

expect(core.format.pendingFormat).toEqual({
format: mockedFormat1,
paragraphFormat: undefined,
insertPoint: {
node: mockedStartContainer2,
offset: mockedStartOffset2,
Expand All @@ -709,6 +711,7 @@ describe('formatContentModel', () => {

expect(core.format.pendingFormat).toEqual({
format: mockedFormat2,
paragraphFormat: undefined,
insertPoint: {
node: mockedStartContainer2,
offset: mockedStartOffset2,
Expand All @@ -724,6 +727,7 @@ describe('formatContentModel', () => {

expect(core.format.pendingFormat).toEqual({
format: mockedFormat2,
paragraphFormat: undefined,
insertPoint: {
node: mockedStartContainer2,
offset: mockedStartOffset2,
Expand All @@ -747,6 +751,7 @@ describe('formatContentModel', () => {

expect(core.format.pendingFormat).toEqual({
format: mockedFormat2,
paragraphFormat: undefined,
insertPoint: {
node: mockedStartContainer2,
offset: mockedStartOffset2,
Expand All @@ -770,6 +775,7 @@ describe('formatContentModel', () => {

expect(core.format.pendingFormat).toEqual({
format: mockedFormat2,
paragraphFormat: undefined,
insertPoint: {
node: mockedStartContainer2,
offset: mockedStartOffset2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('FormatPlugin', () => {
plugin.dispose();

expect(applyPendingFormatSpy).toHaveBeenCalledTimes(1);
expect(applyPendingFormatSpy).toHaveBeenCalledWith(editor, 'a', mockedFormat);
expect(applyPendingFormatSpy).toHaveBeenCalledWith(editor, 'a', mockedFormat, undefined);
expect(state.pendingFormat).toBeNull();
});

Expand Down Expand Up @@ -92,7 +92,7 @@ describe('FormatPlugin', () => {
});
plugin.dispose();

expect(applyPendingFormatSpy).toHaveBeenCalledWith(editor, 'test', mockedFormat);
expect(applyPendingFormatSpy).toHaveBeenCalledWith(editor, 'test', mockedFormat, undefined);
expect(state.pendingFormat).toBeNull();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ContentModelBlockFormat } from 'roosterjs/lib';
import type { AnnounceData } from './AnnounceData';
import type { ContentModelEntity } from '../contentModel/entity/ContentModelEntity';
import type { ContentModelImage } from '../contentModel/segment/ContentModelImage';
import type { ContentModelSegmentFormat } from '../contentModel/format/ContentModelSegmentFormat';
import type { EntityRemovalOperation } from '../enum/EntityOperation';
import type { ContentModelBlockFormat } from '../contentModel/format/ContentModelBlockFormat';

/**
* State for an entity. This is used for storing entity undo snapshot
Expand Down

0 comments on commit 8268e4d

Please sign in to comment.