Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Test: Drop deprecated React.createClass, React.DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Nov 10, 2017
1 parent bfee78d commit 772057f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.1.1
* Remove `react-addons-create-fragment` dependency, use `cloneElement` to specify a key manually instead.
* Bump to allow for React ^16.0.0
* Drop deprecated React.createClass, React.DOM from test

## 1.1.0
* Update to Babel 6 and bump node testing version to 5.11.1
Expand Down
13 changes: 5 additions & 8 deletions test/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ import React from 'react';
import interpolateComponents from '../src/index';

describe( 'interpolate-components', () => {
const input = React.DOM.input();
const div = React.DOM.div();
const input = <input />;
const div = <div />;
const link = <a href="#" />;
const em = <em />;
const CustomComponentClass = React.createClass( {
displayName: 'CustomComponentClass',
render() {
return <span className="special">{ this.props.intro }{ this.props.children }</span>;
}
} );
const CustomComponentClass = ( { children, intro } ) => (
<span className="special">{ intro }{ children }</span>
);

describe( 'with default container', () => {
it( 'should return a react object with a span container', () => {
Expand Down

0 comments on commit 772057f

Please sign in to comment.