Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
francismengMS committed Jun 21, 2024
1 parent 980fde3 commit 46998fb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { setContentModel } from '../../../lib/coreApi/setContentModel/setContent

const mockedDoc = 'DOCUMENT' as any;
const mockedModel = 'MODEL' as any;
const mockedEditorContext = 'EDITORCONTEXT';
const mockedEditorContext = 'EDITORCONTEXT' as any;
const mockedContext = { name: 'CONTEXT' } as any;
const mockedDiv = { ownerDocument: mockedDoc } as any;
const mockedConfig = 'CONFIG' as any;
Expand Down Expand Up @@ -84,7 +84,6 @@ describe('setContentModel', () => {
expect(setDOMSelectionSpy).toHaveBeenCalledWith(core, mockedRange);
expect(core.cache.cachedSelection).toBe(mockedRange);
expect(flushMutationsSpy).toHaveBeenCalledWith(true);
expect(core.cache.cachedModel).toBe(mockedModel);
});

it('with default option, no shadow edit', () => {
Expand Down

0 comments on commit 46998fb

Please sign in to comment.