mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-26 09:14:15 +08:00
Image: add test for 'role=img'
This commit is contained in:
@@ -6,9 +6,9 @@ import Image from '.'
|
||||
import View from '../View'
|
||||
|
||||
suite('Image', () => {
|
||||
test('defaults', () => {
|
||||
const result = shallowRender(<Image />)
|
||||
assert.equal(result.type, View)
|
||||
test('default accessibility', () => {
|
||||
const dom = renderToDOM(<Image />)
|
||||
assert.equal(dom.getAttribute('role'), 'img')
|
||||
})
|
||||
|
||||
test('prop "accessibilityLabel"', () => {
|
||||
|
||||
@@ -28,7 +28,7 @@ suite('View', () => {
|
||||
})
|
||||
|
||||
test('prop "component"', () => {
|
||||
assertProps.component(View, 'div')
|
||||
assertProps.component(View)
|
||||
})
|
||||
|
||||
test('prop "pointerEvents"', () => {
|
||||
|
||||
Reference in New Issue
Block a user