Remove type tests; fix code style

This commit is contained in:
Nicolas Gallagher
2015-09-11 21:28:03 -07:00
parent c7524b7b6f
commit 09dd9a224a
3 changed files with 2 additions and 18 deletions

View File

@@ -133,7 +133,7 @@ class Example extends Component {
onChangeText={(e) => { console.log('TextInput.onChangeText', e) }}
onFocus={(e) => { console.log('TextInput.onFocus', e) }}
/>
<TextInput secureTextEntry={true} />
<TextInput secureTextEntry />
<TextInput keyboardType='numeric' />
<TextInput keyboardType='tel' />
<TextInput keyboardType='url' />

View File

@@ -2,14 +2,6 @@ import { omitProps, pickProps } from '.'
import assert from 'assert'
suite('pickProps', () => {
test('interface', () => {
assert.throws(
() => { pickProps({}, true) },
TypeError,
'pickProps should throw if the second argument is not an array'
)
})
test('return value', () => {
const obj = { a: 1, b: 2, c: { cc: { ccc: 3 } } }
const props = [ 'a', 'b' ]
@@ -21,14 +13,6 @@ suite('pickProps', () => {
})
suite('omitProps', () => {
test('interface', () => {
assert.throws(
() => { omitProps({}, true) },
TypeError,
'omitProps should throw if the second argument is not an array'
)
})
test('return value', () => {
const obj = { a: 1, b: 2, c: { cc: { ccc: 3 } } }
const props = [ 'a', 'b' ]

View File

@@ -36,7 +36,7 @@ export const assertProps = {
accessible: function (Component) {
// accessible
let dom = renderToDOM(<Component accessible={true} />)
let dom = renderToDOM(<Component accessible />)
assert.equal(dom.getAttribute('aria-hidden'), null)
// not accessible
dom = renderToDOM(<Component accessible={false} />)