Skip to content

Commit

Permalink
2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Nov 8, 2015
1 parent 609ac78 commit 708723c
Show file tree
Hide file tree
Showing 5 changed files with 1,688 additions and 1,021 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "algolia",
"rules": {
"no-unused-vars": [2, {"vars": "local", "args": "after-used", "varsIgnorePattern": "^React$"}],
}
"extends": "algolia"
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<a name="2.1.1"></a>
## [2.1.1](https://github.com/algolia/react-element-to-jsx-string/compare/v2.1.0...v2.1.1) (2015-11-08)


### Bug Fixes

* **whitespace:** handle {true} {false} ([eaca1a2](https://github.com/algolia/react-element-to-jsx-string/commit/eaca1a2)), closes [#6](https://github.com/algolia/react-element-to-jsx-string/issues/6) [#7](https://github.com/algolia/react-element-to-jsx-string/issues/7)
* handle <div>{123}</div> ([609ac78](https://github.com/algolia/react-element-to-jsx-string/commit/609ac78)), closes [#8](https://github.com/algolia/react-element-to-jsx-string/issues/8)



<a name="2.1.0"></a>
# [2.1.0](https://github.com/algolia/react-element-to-jsx-string/compare/v2.0.5...v2.1.0) (2015-10-25)

Expand Down
6 changes: 4 additions & 2 deletions index-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* eslint-env mocha */
/* eslint react/no-multi-comp:0 */
/* eslint react/prop-types:0 */

import React from 'react';
import expect from 'expect';
Expand Down Expand Up @@ -340,9 +342,9 @@ describe(`reactElementToJSXString(ReactElement)`, () => {
});

it(`reactElementToJSXString(<div>\\n {null}\\n</div>`, () => {
let element = <div>
let element = (<div>
{null}
</div>;
</div>);

expect(reactElementToJSXString(element)).toEqual(`<div />`);
});
Expand Down
Loading

0 comments on commit 708723c

Please sign in to comment.