From 1f89a6b9ed26260a10ae0dcd5572313374d7b1d0 Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:23:08 -0700 Subject: [PATCH 1/9] Tests: Move components/accordion to Single Test Runner --- client/components/accordion/Makefile | 7 ------- client/components/accordion/test/index.jsx | 2 +- client/tests.json | 3 +++ 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 client/components/accordion/Makefile diff --git a/client/components/accordion/Makefile b/client/components/accordion/Makefile deleted file mode 100644 index 5fb42bb5b03d5..0000000000000 --- a/client/components/accordion/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -REPORTER ?= spec -MOCHA ?= ../../../node_modules/.bin/mocha - -test: - @NODE_ENV=test NODE_PATH=test:../../ $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/accordion/test/index.jsx b/client/components/accordion/test/index.jsx index 4bcad49f4b6cd..a7809b13e0b1f 100644 --- a/client/components/accordion/test/index.jsx +++ b/client/components/accordion/test/index.jsx @@ -1,5 +1,4 @@ /* eslint-disable vars-on-top */ -require( 'lib/react-test-env-setup' )(); /** * External dependencies @@ -17,6 +16,7 @@ require( 'react-tap-event-plugin' )(); var Accordion = require( '../' ); describe( 'Accordion', function() { + require( 'test/helpers/use-fake-dom' )(); afterEach( function() { ReactDom.unmountComponentAtNode( document.body ); } ); diff --git a/client/tests.json b/client/tests.json index 89ae51e1433e4..af4575bde7f64 100644 --- a/client/tests.json +++ b/client/tests.json @@ -7,6 +7,9 @@ "domain-suggestion": { "test": [ "index" ] } + }, + "accordion": { + "test": [ "index" ] } }, "lib": { From 9149b6c29c75dc0822d6672b78a534125634497e Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:24:01 -0700 Subject: [PATCH 2/9] Tests: Move components/bulk-select to Single Test Runner --- client/components/bulk-select/Makefile | 10 ---------- client/components/bulk-select/test/index.js | 4 +--- client/tests.json | 3 +++ 3 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 client/components/bulk-select/Makefile diff --git a/client/components/bulk-select/Makefile b/client/components/bulk-select/Makefile deleted file mode 100644 index e4d7be5fa9312..0000000000000 --- a/client/components/bulk-select/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -REPORTER ?= spec -NODE_BIN := $(shell npm bin) -MOCHA ?= ../../../node_modules/.bin/mocha -BASE_DIR := $(NODE_BIN)/../.. -NODE_PATH := test:$(BASE_DIR)/client - -test: - @NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/bulk-select/test/index.js b/client/components/bulk-select/test/index.js index 6e2023bc2ed77..d5f64fbdf9723 100644 --- a/client/components/bulk-select/test/index.js +++ b/client/components/bulk-select/test/index.js @@ -1,6 +1,3 @@ - -require( 'lib/react-test-env-setup' )(); - /** * External dependencies */ @@ -15,6 +12,7 @@ import noop from 'lodash/noop'; import BulkSelect from '../index'; describe( 'BulkSelect', function() { + require( 'test/helpers/use-fake-dom' )(); it( 'should have BulkSelect class', function() { const bulkSelect = shallow( ); assert.equal( 1, bulkSelect.find( '.bulk-select' ).length ); diff --git a/client/tests.json b/client/tests.json index af4575bde7f64..cb97566f9c77c 100644 --- a/client/tests.json +++ b/client/tests.json @@ -10,6 +10,9 @@ }, "accordion": { "test": [ "index" ] + }, + "bulk-select": { + "test": [ "index" ] } }, "lib": { From 11d99f273f3628e09b55fe5ea49872551a8b0963 Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:24:44 -0700 Subject: [PATCH 3/9] Tests: Move components/data/media-list-data to Single Test Runner --- client/components/data/media-list-data/Makefile | 8 -------- client/components/data/media-list-data/test/index.js | 3 --- .../data/media-list-data/test/{specs => }/utils.js | 4 ++-- client/tests.json | 5 +++++ 4 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 client/components/data/media-list-data/Makefile delete mode 100644 client/components/data/media-list-data/test/index.js rename client/components/data/media-list-data/test/{specs => }/utils.js (92%) diff --git a/client/components/data/media-list-data/Makefile b/client/components/data/media-list-data/Makefile deleted file mode 100644 index a2fc5e4007dd3..0000000000000 --- a/client/components/data/media-list-data/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -REPORTER ?= spec -MOCHA ?= ../../../../node_modules/.bin/mocha - -# In order to simply stub modules, add test to the NODE_PATH -test: - @NODE_ENV=test NODE_PATH=test:../../../../client $(MOCHA) --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/data/media-list-data/test/index.js b/client/components/data/media-list-data/test/index.js deleted file mode 100644 index 6233b44e874a7..0000000000000 --- a/client/components/data/media-list-data/test/index.js +++ /dev/null @@ -1,3 +0,0 @@ -describe( 'media-list', function() { - require( './specs/utils' ); -} ); diff --git a/client/components/data/media-list-data/test/specs/utils.js b/client/components/data/media-list-data/test/utils.js similarity index 92% rename from client/components/data/media-list-data/test/specs/utils.js rename to client/components/data/media-list-data/test/utils.js index 3727caaa2687b..c44763fc79f2d 100644 --- a/client/components/data/media-list-data/test/specs/utils.js +++ b/client/components/data/media-list-data/test/utils.js @@ -6,9 +6,9 @@ var expect = require( 'chai' ).expect; /** * Internal dependencies */ -var utils = require( '../../utils' ); +var utils = require( '../utils' ); -describe( 'utils', function() { +describe( 'Media List Data - utils', function() { describe( '#getMimeBaseTypeFromFilter()', function() { it( 'should return an empty string for an unknown filter', function() { var baseType = utils.getMimeBaseTypeFromFilter( 'unknown' ); diff --git a/client/tests.json b/client/tests.json index cb97566f9c77c..1ecb9265acfc8 100644 --- a/client/tests.json +++ b/client/tests.json @@ -13,6 +13,11 @@ }, "bulk-select": { "test": [ "index" ] + }, + "data": { + "media-list-data": { + "test": [ "utils" ] + } } }, "lib": { From c202c1eb971f4ed3c4f591ae365f9701fdad912a Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:26:06 -0700 Subject: [PATCH 4/9] Tests: Move components/drop-zone to Single Test Runner --- client/components/drop-zone/Makefile | 7 ----- client/components/drop-zone/test/index.jsx | 33 ++++++++-------------- client/tests.json | 3 ++ 3 files changed, 14 insertions(+), 29 deletions(-) delete mode 100644 client/components/drop-zone/Makefile diff --git a/client/components/drop-zone/Makefile b/client/components/drop-zone/Makefile deleted file mode 100644 index 5fb42bb5b03d5..0000000000000 --- a/client/components/drop-zone/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -REPORTER ?= spec -MOCHA ?= ../../../node_modules/.bin/mocha - -test: - @NODE_ENV=test NODE_PATH=test:../../ $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/drop-zone/test/index.jsx b/client/components/drop-zone/test/index.jsx index 958d40e3a87a8..8a796ab98284f 100644 --- a/client/components/drop-zone/test/index.jsx +++ b/client/components/drop-zone/test/index.jsx @@ -1,31 +1,18 @@ -/* eslint-disable vars-on-top */ -require( 'lib/react-test-env-setup' )( '
' ); - -/** - * External dependencies - */ var expect = require( 'chai' ).expect, ReactDom = require( 'react-dom' ), React = require( 'react' ), TestUtils = require( 'react-addons-test-utils' ), - sinon = require( 'sinon' ); - -/** - * Internal dependencies - */ -var DropZone = require( '../' ); - -/** - * Module variables - */ -var Wrapper = React.createClass( { - render: function() { - return
{ this.props.children }
; - } -} ); + sinon = require( 'sinon' ), + DropZone = require( '../' ), + Wrapper = React.createClass( { + render: function() { + return
{ this.props.children }
; + } + } ); describe( 'DropZone', function() { var container, sandbox; + require( 'test/helpers/use-fake-dom' )( '
' ); before( function() { DropZone.prototype.__reactAutoBindMap.translate = sinon.stub().returnsArg( 0 ); @@ -37,7 +24,9 @@ describe( 'DropZone', function() { } ); after( function() { - delete window.MutationObserver; + if ( global.window && global.window.MutationObserver ) { + delete global.window.MutationObserver; + } delete DropZone.prototype.__reactAutoBindMap.translate; } ); diff --git a/client/tests.json b/client/tests.json index 1ecb9265acfc8..69ae8c22f3d6d 100644 --- a/client/tests.json +++ b/client/tests.json @@ -18,6 +18,9 @@ "media-list-data": { "test": [ "utils" ] } + }, + "drop-zone": { + "test": [ "index" ] } }, "lib": { From 906c1a58c628413544d1998e76b2d172233a10df Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:29:45 -0700 Subject: [PATCH 5/9] Tests: Move components/forms/counted-textarea to Single Test Runner --- client/components/forms/counted-textarea/Makefile | 13 ------------- client/tests.json | 5 +++++ 2 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 client/components/forms/counted-textarea/Makefile diff --git a/client/components/forms/counted-textarea/Makefile b/client/components/forms/counted-textarea/Makefile deleted file mode 100644 index dd8832a8c94c4..0000000000000 --- a/client/components/forms/counted-textarea/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -UI ?= bdd -REPORTER ?= spec -COMPILERS ?= jsx:babel/register -NODE_BIN := $(shell npm bin) -MOCHA ?= $(NODE_BIN)/mocha -BASE_DIR := $(NODE_BIN)/../.. -NODE_PATH := test:$(BASE_DIR)/client - -# In order to simply stub modules, add test to the NODE_PATH -test: - @NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers $(COMPILERS) --reporter $(REPORTER) --ui $(UI) - -.PHONY: test diff --git a/client/tests.json b/client/tests.json index 69ae8c22f3d6d..31372bbf99683 100644 --- a/client/tests.json +++ b/client/tests.json @@ -21,6 +21,11 @@ }, "drop-zone": { "test": [ "index" ] + }, + "forms": { + "counted-textarea": { + "test": [ "index" ] + } } }, "lib": { From f8e17887b3b8318aec1e533fff3946fc872fc4f3 Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:30:34 -0700 Subject: [PATCH 6/9] Tests: Move components/forms/form-toggle to Single Test Runner --- client/components/forms/form-toggle/Makefile | 7 ------- client/components/forms/form-toggle/test/index.jsx | 6 +++--- client/tests.json | 3 +++ 3 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 client/components/forms/form-toggle/Makefile diff --git a/client/components/forms/form-toggle/Makefile b/client/components/forms/form-toggle/Makefile deleted file mode 100644 index bc38f1cff4a73..0000000000000 --- a/client/components/forms/form-toggle/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -REPORTER ?= spec -MOCHA ?= ../../../../node_modules/.bin/mocha - -test: - @NODE_ENV=test NODE_PATH=test:../../../ $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/forms/form-toggle/test/index.jsx b/client/components/forms/form-toggle/test/index.jsx index 39b4d148a496b..1f7268bcc6d9b 100644 --- a/client/components/forms/form-toggle/test/index.jsx +++ b/client/components/forms/form-toggle/test/index.jsx @@ -18,13 +18,12 @@ var FormToggle = require( 'components/forms/form-toggle' ), */ var Wrapper = React.createClass( { render: function() { - return
{this.props.children}
; + return
{ this.props.children }
; } } ); -require( 'lib/react-test-env-setup' )(); - describe( 'CompactFormToggle', function() { + require( 'test/helpers/use-fake-dom' )(); describe( 'rendering', function() { it( 'should have is-compact class', function() { var toggle = TestUtils.renderIntoDocument( ), @@ -37,6 +36,7 @@ describe( 'CompactFormToggle', function() { } ); describe( 'FormToggle', function() { + require( 'test/helpers/use-fake-dom' )(); afterEach( function() { ReactDom.unmountComponentAtNode( document.body ); } ); diff --git a/client/tests.json b/client/tests.json index 31372bbf99683..1facf637e5625 100644 --- a/client/tests.json +++ b/client/tests.json @@ -25,6 +25,9 @@ "forms": { "counted-textarea": { "test": [ "index" ] + }, + "form-toggle": { + "test": [ "index" ] } } }, From 3ba96977a898707f262cb988fdce7eaf997e23f4 Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:32:33 -0700 Subject: [PATCH 7/9] Tests: Move components/forms/multi-checkbox to Single Test Runner --- client/components/forms/multi-checkbox/Makefile | 7 ------- .../components/forms/multi-checkbox/test/index.jsx | 14 +++----------- client/tests.json | 3 +++ 3 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 client/components/forms/multi-checkbox/Makefile diff --git a/client/components/forms/multi-checkbox/Makefile b/client/components/forms/multi-checkbox/Makefile deleted file mode 100644 index bc38f1cff4a73..0000000000000 --- a/client/components/forms/multi-checkbox/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -REPORTER ?= spec -MOCHA ?= ../../../../node_modules/.bin/mocha - -test: - @NODE_ENV=test NODE_PATH=test:../../../ $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/forms/multi-checkbox/test/index.jsx b/client/components/forms/multi-checkbox/test/index.jsx index 1ec3593450b36..6b2eab99dca47 100644 --- a/client/components/forms/multi-checkbox/test/index.jsx +++ b/client/components/forms/multi-checkbox/test/index.jsx @@ -1,23 +1,15 @@ -require( 'lib/react-test-env-setup' )(); - -/** - * External dependencies - */ var assert = require( 'assert' ), ReactDom = require( 'react-dom' ), React = require( 'react' ), - TestUtils = require( 'react-addons-test-utils' ); - -/** - * Internal dependencies - */ -var MultiCheckbox = require( '../' ); + TestUtils = require( 'react-addons-test-utils' ), + MultiCheckbox = require( '../' ); describe( 'MultiCheckbox', function() { var options = [ { value: 1, label: 'One' }, { value: 2, label: 'Two' } ]; + require( 'test/helpers/use-fake-dom' )(); afterEach( function() { ReactDom.unmountComponentAtNode( document.body ); diff --git a/client/tests.json b/client/tests.json index 1facf637e5625..8b5166e028092 100644 --- a/client/tests.json +++ b/client/tests.json @@ -28,6 +28,9 @@ }, "form-toggle": { "test": [ "index" ] + }, + "multi-checkbox": { + "test": [ "index" ] } } }, From a10d0f4e1ae96c8a34da282ec7bf40a4cf13e7cb Mon Sep 17 00:00:00 2001 From: Umur Kontaci Date: Thu, 17 Mar 2016 10:34:15 -0700 Subject: [PATCH 8/9] Tests: Move components/forms/range to Single Test Runner --- client/components/forms/range/Makefile | 7 ------- client/components/forms/range/test/index.jsx | 7 +++---- client/tests.json | 3 +++ 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 client/components/forms/range/Makefile diff --git a/client/components/forms/range/Makefile b/client/components/forms/range/Makefile deleted file mode 100644 index bc38f1cff4a73..0000000000000 --- a/client/components/forms/range/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -REPORTER ?= spec -MOCHA ?= ../../../../node_modules/.bin/mocha - -test: - @NODE_ENV=test NODE_PATH=test:../../../ $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER) - -.PHONY: test diff --git a/client/components/forms/range/test/index.jsx b/client/components/forms/range/test/index.jsx index 680a0744aee8a..4f525ffe9b501 100644 --- a/client/components/forms/range/test/index.jsx +++ b/client/components/forms/range/test/index.jsx @@ -1,5 +1,3 @@ -require( 'lib/react-test-env-setup' )(); - /** * External dependencies */ @@ -14,6 +12,7 @@ var expect = require( 'chai' ).expect, var FormRange = require( '../' ); describe( 'Range', function() { + require( 'test/helpers/use-fake-dom' )(); afterEach( function() { ReactDom.unmountComponentAtNode( document.body ); } ); @@ -28,7 +27,7 @@ describe( 'Range', function() { content = TestUtils.scryRenderedDOMComponentsWithClass( range, 'range__content' ); expect( content ).to.have.length( 1 ); - expect( content[0].props.className ).to.contain( 'is-min' ); + expect( content[0].getAttribute( 'class' ) ).to.contain( 'is-min' ); } ); it( 'should render ending content if passed a `maxContent` prop', function() { @@ -41,7 +40,7 @@ describe( 'Range', function() { content = TestUtils.scryRenderedDOMComponentsWithClass( range, 'range__content' ); expect( content ).to.have.length( 1 ); - expect( content[0].props.className ).to.contain( 'is-max' ); + expect( content[0].getAttribute( 'class' ) ).to.contain( 'is-max' ); } ); it( 'should render a value label if passed a truthy `showValueLabel` prop', function() { diff --git a/client/tests.json b/client/tests.json index 8b5166e028092..6f12c7a7ba020 100644 --- a/client/tests.json +++ b/client/tests.json @@ -31,6 +31,9 @@ }, "multi-checkbox": { "test": [ "index" ] + }, + "range": { + "test": [ "index" ] } } }, From 3591eec9f06be92f162c702aa7a3bcc07d3eb1cf Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Fri, 18 Mar 2016 11:37:20 +0100 Subject: [PATCH 9/9] Test: Minor cleanup in client/components tests --- client/components/accordion/test/index.jsx | 8 +++----- client/components/bulk-select/test/index.js | 2 +- client/components/data/media-list-data/test/utils.js | 2 +- client/components/drop-zone/test/index.jsx | 2 +- client/components/forms/counted-textarea/test/index.jsx | 2 +- client/components/forms/form-toggle/test/index.jsx | 2 +- client/components/forms/multi-checkbox/test/index.jsx | 2 +- client/components/forms/range/test/index.jsx | 2 +- 8 files changed, 10 insertions(+), 12 deletions(-) diff --git a/client/components/accordion/test/index.jsx b/client/components/accordion/test/index.jsx index a7809b13e0b1f..8892d5c537894 100644 --- a/client/components/accordion/test/index.jsx +++ b/client/components/accordion/test/index.jsx @@ -1,5 +1,3 @@ -/* eslint-disable vars-on-top */ - /** * External dependencies */ @@ -8,15 +6,15 @@ var expect = require( 'chai' ).expect, React = require( 'react' ), TestUtils = require( 'react-addons-test-utils' ); -require( 'react-tap-event-plugin' )(); - /** * Internal dependencies */ var Accordion = require( '../' ); -describe( 'Accordion', function() { +describe( 'index', function() { + require( 'react-tap-event-plugin' )(); require( 'test/helpers/use-fake-dom' )(); + afterEach( function() { ReactDom.unmountComponentAtNode( document.body ); } ); diff --git a/client/components/bulk-select/test/index.js b/client/components/bulk-select/test/index.js index d5f64fbdf9723..ba53b7328d470 100644 --- a/client/components/bulk-select/test/index.js +++ b/client/components/bulk-select/test/index.js @@ -11,7 +11,7 @@ import noop from 'lodash/noop'; */ import BulkSelect from '../index'; -describe( 'BulkSelect', function() { +describe( 'index', function() { require( 'test/helpers/use-fake-dom' )(); it( 'should have BulkSelect class', function() { const bulkSelect = shallow( ); diff --git a/client/components/data/media-list-data/test/utils.js b/client/components/data/media-list-data/test/utils.js index c44763fc79f2d..721b65d86d765 100644 --- a/client/components/data/media-list-data/test/utils.js +++ b/client/components/data/media-list-data/test/utils.js @@ -8,7 +8,7 @@ var expect = require( 'chai' ).expect; */ var utils = require( '../utils' ); -describe( 'Media List Data - utils', function() { +describe( 'utils', function() { describe( '#getMimeBaseTypeFromFilter()', function() { it( 'should return an empty string for an unknown filter', function() { var baseType = utils.getMimeBaseTypeFromFilter( 'unknown' ); diff --git a/client/components/drop-zone/test/index.jsx b/client/components/drop-zone/test/index.jsx index 8a796ab98284f..dab718cdb2e6e 100644 --- a/client/components/drop-zone/test/index.jsx +++ b/client/components/drop-zone/test/index.jsx @@ -10,7 +10,7 @@ var expect = require( 'chai' ).expect, } } ); -describe( 'DropZone', function() { +describe( 'index', function() { var container, sandbox; require( 'test/helpers/use-fake-dom' )( '
' ); diff --git a/client/components/forms/counted-textarea/test/index.jsx b/client/components/forms/counted-textarea/test/index.jsx index 99f4f2cbef76f..4d4ef73f664b0 100644 --- a/client/components/forms/counted-textarea/test/index.jsx +++ b/client/components/forms/counted-textarea/test/index.jsx @@ -11,7 +11,7 @@ var React = require( 'react' ), */ var i18n = require( 'lib/mixins/i18n' ); -describe( 'CountedTextarea', function() { +describe( 'index', function() { var CountedTextarea, renderer; before( function() { diff --git a/client/components/forms/form-toggle/test/index.jsx b/client/components/forms/form-toggle/test/index.jsx index 1f7268bcc6d9b..f5d006ee6cf79 100644 --- a/client/components/forms/form-toggle/test/index.jsx +++ b/client/components/forms/form-toggle/test/index.jsx @@ -22,7 +22,7 @@ var Wrapper = React.createClass( { } } ); -describe( 'CompactFormToggle', function() { +describe( 'index', function() { require( 'test/helpers/use-fake-dom' )(); describe( 'rendering', function() { it( 'should have is-compact class', function() { diff --git a/client/components/forms/multi-checkbox/test/index.jsx b/client/components/forms/multi-checkbox/test/index.jsx index 6b2eab99dca47..45405d7926e66 100644 --- a/client/components/forms/multi-checkbox/test/index.jsx +++ b/client/components/forms/multi-checkbox/test/index.jsx @@ -4,7 +4,7 @@ var assert = require( 'assert' ), TestUtils = require( 'react-addons-test-utils' ), MultiCheckbox = require( '../' ); -describe( 'MultiCheckbox', function() { +describe( 'index', function() { var options = [ { value: 1, label: 'One' }, { value: 2, label: 'Two' } diff --git a/client/components/forms/range/test/index.jsx b/client/components/forms/range/test/index.jsx index 4f525ffe9b501..5e2f1f3f444a8 100644 --- a/client/components/forms/range/test/index.jsx +++ b/client/components/forms/range/test/index.jsx @@ -11,7 +11,7 @@ var expect = require( 'chai' ).expect, */ var FormRange = require( '../' ); -describe( 'Range', function() { +describe( 'index', function() { require( 'test/helpers/use-fake-dom' )(); afterEach( function() { ReactDom.unmountComponentAtNode( document.body );