Skip to content

Commit

Permalink
Test: Fix client/components/feature-example test
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Apr 21, 2016
1 parent bb0a46c commit e400145
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/components/feature-example/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( <FeatureExample /> );
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( <FeatureExample><div>test</div></FeatureExample> );
assert.equal( true, featureExample.contains( '<div>test</div>' ) );
assert.isTrue( featureExample.contains( <div>test</div> ) );
} );
} );

0 comments on commit e400145

Please sign in to comment.