From ac853ff4ab8cf2b218de3e87b219737bf38a6ad5 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 23 Jun 2021 10:31:32 -0400 Subject: [PATCH] test: fix script setup helpers tests --- .../__tests__/apiSetupHelpers.spec.ts | 46 ++++++++++++------- packages/runtime-core/src/apiSetupHelpers.ts | 8 +++- packages/runtime-core/src/component.ts | 5 +- 3 files changed, 39 insertions(+), 20 deletions(-) diff --git a/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts b/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts index 12a8c67b..fbc884d0 100644 --- a/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts +++ b/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts @@ -5,7 +5,12 @@ import { render, SetupContext } from '@vue/runtime-test' -import { defineEmits, defineProps, useContext } from '../src/apiSetupHelpers' +import { + defineEmits, + defineProps, + useAttrs, + useSlots +} from '../src/apiSetupHelpers' describe('SFC