From 46998fb0421a1642f21ed0e646ce32244c082366 Mon Sep 17 00:00:00 2001 From: Francis Meng Date: Fri, 21 Jun 2024 14:09:00 -0700 Subject: [PATCH] update --- .../test/coreApi/setContentModel/setContentModelTest.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/roosterjs-content-model-core/test/coreApi/setContentModel/setContentModelTest.ts b/packages/roosterjs-content-model-core/test/coreApi/setContentModel/setContentModelTest.ts index 7d7c31269b5..201e90ae96c 100644 --- a/packages/roosterjs-content-model-core/test/coreApi/setContentModel/setContentModelTest.ts +++ b/packages/roosterjs-content-model-core/test/coreApi/setContentModel/setContentModelTest.ts @@ -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; @@ -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', () => {