Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.1.1
* Drop deprecated React.createClass, React.DOM from test
* Bump to allow for React ^16.0.0

## 1.1.0
* Update to Babel 6 and bump node testing version to 5.11.1

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"test": "test"
},
"dependencies": {
"react": "^0.14.3 || ^15.1.0",
"react": "^0.14.3 || ^15.1.0 || ^16.0.0",
"react-addons-create-fragment": "^0.14.3 || ^15.1.0",
"react-dom": "^0.14.3 || ^15.1.0"
"react-dom": "^0.14.3 || ^15.1.0 || ^16.0.0"
},
"author": "Bob Ralian <[email protected]> (http://github.com/rralian)",
"license": "GPL-2.0"
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