chore: rename all legacy test cases
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import PasswordInput from '..';
|
||||
import { mount } from '../../../test';
|
||||
|
||||
test('focus event', () => {
|
||||
const focus = jest.fn();
|
||||
const wrapper = mount(PasswordInput, {
|
||||
context: {
|
||||
on: {
|
||||
focus,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
wrapper.find('.van-password-input__security').trigger('touchstart');
|
||||
expect(focus).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
Reference in New Issue
Block a user