mirror of
				https://github.com/theoludwig/theoludwig.git
				synced 2025-11-04 00:19:01 +01:00 
			
		
		
		
	test: add the first automated tests
This commit is contained in:
		
							
								
								
									
										10
									
								
								components/design/__test__/Button.test.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								components/design/__test__/Button.test.tsx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
import { render } from '@testing-library/react'
 | 
			
		||||
 | 
			
		||||
import { Button } from '../Button'
 | 
			
		||||
 | 
			
		||||
describe('<Button />', () => {
 | 
			
		||||
  it('should render', async () => {
 | 
			
		||||
    const { getByText } = render(<Button>Submit</Button>)
 | 
			
		||||
    expect(getByText('Submit')).toBeInTheDocument()
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
		Reference in New Issue
	
	Block a user