Chapter 6 - Building a Component the Redwood Way - Testing
This commit is contained in:
14
web/src/components/Comment/Comment.test.js
Normal file
14
web/src/components/Comment/Comment.test.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { render } from '@redwoodjs/testing/web'
|
||||
|
||||
import Comment from './Comment'
|
||||
|
||||
// Improve this test with help from the Redwood Testing Doc:
|
||||
// https://redwoodjs.com/docs/testing#testing-components
|
||||
|
||||
describe('Comment', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<Comment />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user