chore: format test cases

This commit is contained in:
chenjiahan
2020-03-15 11:04:29 +08:00
parent 66c0b3c1b7
commit c7e51158aa
6 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -20,14 +20,14 @@ test('click number key', () => {
wrapper.destroy();
});
it('click delete key', () => {
test('click delete key', () => {
const wrapper = mount(NumberKeyboard);
clickKey(wrapper.findAll('.van-key').at(11));
expect(wrapper.emitted('delete')).toBeTruthy();
});
it('click empty key', () => {
test('click empty key', () => {
const wrapper = mount(NumberKeyboard);
clickKey(wrapper.findAll('.van-key').at(9));
expect(wrapper.emitted('input')).toBeFalsy();