Image: add test for 'role=img'

This commit is contained in:
Nicolas Gallagher
2015-09-20 19:41:13 -07:00
parent 45777e0405
commit 0aa29d8816
2 changed files with 4 additions and 4 deletions

View File

@@ -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"', () => {

View File

@@ -28,7 +28,7 @@ suite('View', () => {
})
test('prop "component"', () => {
assertProps.component(View, 'div')
assertProps.component(View)
})
test('prop "pointerEvents"', () => {