From b296c39c6b650fad831df2edf37673a4333fd561 Mon Sep 17 00:00:00 2001 From: Jiuqing Song Date: Mon, 10 Jun 2024 14:44:58 -0700 Subject: [PATCH] fix test --- .../test/corePlugin/cache/textMutationObserverTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/roosterjs-content-model-core/test/corePlugin/cache/textMutationObserverTest.ts b/packages/roosterjs-content-model-core/test/corePlugin/cache/textMutationObserverTest.ts index 332142a38e3..4187968b893 100644 --- a/packages/roosterjs-content-model-core/test/corePlugin/cache/textMutationObserverTest.ts +++ b/packages/roosterjs-content-model-core/test/corePlugin/cache/textMutationObserverTest.ts @@ -129,7 +129,7 @@ describe('TextMutationObserverImpl', () => { window.setTimeout(resolve, 10); }); - expect(onMutation).toHaveBeenCalledTimes(2); + expect(onMutation).toHaveBeenCalledTimes(1); expect(onMutation).toHaveBeenCalledWith(false); observer.stopObserving();