mirror of https://github.com/statping/statping
				
				
				
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			487 B
		
	
	
	
		
			JavaScript
		
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			487 B
		
	
	
	
		
			JavaScript
		
	
	
| // import { mount } from '@vue/test-utils';
 | |
| // import Index from '../../src/pages/Index';
 | |
| //
 | |
| // const wrapper = mount(Index);
 | |
| 
 | |
| // describe('MyName test', () => {
 | |
| //     it('Displays my name when I write it', () => {
 | |
| //
 | |
| //         expect(wrapper.vm.$data.logged_in).toBe('My name');
 | |
| //
 | |
| //         const input = wrapper.find('input');
 | |
| //         input.element.value = 'Stefan';
 | |
| //         input.trigger('input');
 | |
| //
 | |
| //         expect(wrapper.vm.$data.name).toBe('Stefan');
 | |
| //     })
 | |
| // });
 |