diff --git a/client/components/feature-example/test/index.js b/client/components/feature-example/test/index.js index 41ff31b2be63..e35165c660a4 100644 --- a/client/components/feature-example/test/index.js +++ b/client/components/feature-example/test/index.js @@ -11,14 +11,13 @@ import { shallow } from 'enzyme'; import FeatureExample from '../index'; describe( 'Feature Example', function() { - it( 'should have Feature-example class', function() { + it( 'should have Feature-example class', () => { const featureExample = shallow( ); - assert.equal( 1, featureExample.find( '.feature-example' ).length ); + assert.lengthOf( featureExample.find( '.feature-example' ), 1 ); } ); - // TODO: fix it - it.skip( 'should contains the passed children wrapped by a feature-example div', function() { + it( 'should contains the passed children wrapped by a feature-example div', () => { const featureExample = shallow(
test
); - assert.equal( true, featureExample.contains( '
test
' ) ); + assert.isTrue( featureExample.contains(
test
) ); } ); } );