From 1a751ce178f86a353193c94518e840a4b0f4856c Mon Sep 17 00:00:00 2001 From: jizhi Date: Sun, 24 Jan 2021 16:36:17 +0800 Subject: [PATCH] test(nested-scroll): fix test --- packages/nested-scroll/src/__tests__/index.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nested-scroll/src/__tests__/index.spec.ts b/packages/nested-scroll/src/__tests__/index.spec.ts index 02251567..77a46793 100644 --- a/packages/nested-scroll/src/__tests__/index.spec.ts +++ b/packages/nested-scroll/src/__tests__/index.spec.ts @@ -231,6 +231,10 @@ describe('NestedScroll tests', () => { hasVerticalScroll: false, hasHorizontalScroll: true, }) + addProperties(grandsonScrollH, { + hasVerticalScroll: false, + hasHorizontalScroll: true, + }) grandsonScrollH.trigger(grandsonScrollH.eventTypes.beforeScrollStart) expect(parentScrollH.disable).toBeCalled()