From 09dd9a224a1411e8137c004f118cbf3742353aed Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 11 Sep 2015 21:28:03 -0700 Subject: [PATCH] Remove type tests; fix code style --- src/example.js | 2 +- src/modules/filterObjectProps/index.spec.js | 16 ---------------- src/modules/specHelpers/index.js | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/example.js b/src/example.js index 6c65f0f9..d60c13bc 100644 --- a/src/example.js +++ b/src/example.js @@ -133,7 +133,7 @@ class Example extends Component { onChangeText={(e) => { console.log('TextInput.onChangeText', e) }} onFocus={(e) => { console.log('TextInput.onFocus', e) }} /> - + diff --git a/src/modules/filterObjectProps/index.spec.js b/src/modules/filterObjectProps/index.spec.js index b6948c8d..95aebeeb 100644 --- a/src/modules/filterObjectProps/index.spec.js +++ b/src/modules/filterObjectProps/index.spec.js @@ -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' ] diff --git a/src/modules/specHelpers/index.js b/src/modules/specHelpers/index.js index 472a7625..a550031f 100644 --- a/src/modules/specHelpers/index.js +++ b/src/modules/specHelpers/index.js @@ -36,7 +36,7 @@ export const assertProps = { accessible: function (Component) { // accessible - let dom = renderToDOM() + let dom = renderToDOM() assert.equal(dom.getAttribute('aria-hidden'), null) // not accessible dom = renderToDOM()