mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 04:35:32 +08:00
chore: update GH's template and prettier config (#309)
* chore(gh): update GitHub's pull-request template * chore: use unified common prettier config * chore: add the mdx file to prettier * chore(gh): update contributing guide docs
This commit is contained in:
@@ -35,7 +35,7 @@ describe(' User', () => {
|
||||
|
||||
it('should pass alt attribute', () => {
|
||||
const wrapper = mount(
|
||||
<User name="witt" src="https://unix.bio/assets/avatar.png" altText="witt"/>
|
||||
<User name="witt" src="https://unix.bio/assets/avatar.png" altText="witt" />,
|
||||
)
|
||||
expect(wrapper.find('img').prop('alt')).toEqual('witt')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user