There was an error while loading. Please reload this page.
1 parent 323a693 commit 831cb7cCopy full SHA for 831cb7c
packages/devui-vue/devui/input-number/__tests__/input-number.spec.tsx
@@ -211,4 +211,20 @@ describe('d-input-number', () => {
211
});
212
213
it.todo('method focus/blur/select work well.');
214
+ it('method focus/blur/select work', async () => {
215
+ const blurCallback = jest.fn();
216
+ const focusCallback = jest.fn();
217
+ const num = ref(0);
218
+ const ttt = ref();
219
+ const wrapper = mount({
220
+ setup() {
221
+ return () => <DInputNumber v-model={num.value} onBlur={blurCallback} onFocus={focusCallback} ref={ttt} />;
222
+ },
223
+ });
224
+ const inputNumber = wrapper.find(ns.b());
225
+ expect(inputNumber.exists()).toBeTruthy();
226
+
227
+ const tttt = wrapper.vm.$refs;
228
+ console.log(wrapper.vm.$.exposed);
229
230
0 commit comments