18 lines
		
	
	
		
			529 B
		
	
	
	
		
			JavaScript
		
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			529 B
		
	
	
	
		
			JavaScript
		
	
	
import { mount } from '@vue/test-utils';
 | 
						|
import DatePicker from '..';
 | 
						|
import focusTest from '../../../tests/shared/focusTest';
 | 
						|
 | 
						|
const { QuarterPicker } = DatePicker;
 | 
						|
jest.mock('../../_util/Portal');
 | 
						|
describe('QuarterPicker', () => {
 | 
						|
  focusTest(QuarterPicker);
 | 
						|
  fit('reset select item when popup close', async () => {
 | 
						|
    const wrapper = mount(DatePicker, {
 | 
						|
      props: { style: { width: '400px' }, picker: 'quarter' },
 | 
						|
      sync: false,
 | 
						|
      attachTo: 'body',
 | 
						|
    });
 | 
						|
    expect(wrapper.html()).toMatchSnapshot();
 | 
						|
  });
 | 
						|
});
 |