From 06e049b34083116dc212f07efdf04033172862e6 Mon Sep 17 00:00:00 2001 From: weihaiyu <1600219867@qq.com> Date: Mon, 20 Jul 2020 16:46:02 +0800 Subject: [PATCH] test:lifecycle shuld be expect 'onMountFn' --- tests/lifecycle.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lifecycle.spec.ts b/tests/lifecycle.spec.ts index 442493082..da1c5deaa 100644 --- a/tests/lifecycle.spec.ts +++ b/tests/lifecycle.spec.ts @@ -30,7 +30,7 @@ describe('lifecycles', () => { mount(Component) await nextTick() expect(beforeMountFn).toHaveBeenCalled() - expect(onBeforeMountFn).toHaveBeenCalled() + expect(onMountFn).toHaveBeenCalled() expect(onBeforeMountFn).toHaveBeenCalled() })