Skip to content

Commit

Permalink
Upgrade react to 15.0.1 and enzyme to 2.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Apr 15, 2016
1 parent 8e4ecc5 commit 609050d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
"babel-preset-react-hmre": "^1.0.1",
"babel-register": "^6.3.13",
"cross-env": "^1.0.7",
"enzyme": "^1.2.0",
"enzyme": "^2.2.0",
"eslint": "^1.10.3",
"eslint-plugin-react": "^3.14.0",
"express": "^4.13.3",
"jsdom": "^7.2.2",
"mocha": "^2.3.4",
"mocha-eslint": "^1.0.0",
"react": "^0.14.7",
"react-addons-test-utils": "^0.14.6",
"react-dom": "^0.14.7",
"react": "^15.0.1",
"react-addons-test-utils": "^15.0.1",
"react-dom": "^15.0.1",
"rimraf": "^2.5.0",
"sinon": "^1.17.2",
"tween.js": "^16.3.1",
Expand Down
6 changes: 3 additions & 3 deletions test/portal_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import assert from 'assert';
import {spy} from 'sinon';
import {render, unmountComponentAtNode} from 'react-dom';
import {
mount,
spyLifecycle
mount
} from 'enzyme';

describe('react-portal', () => {
Expand Down Expand Up @@ -168,9 +167,10 @@ describe('react-portal', () => {

describe('openByClickOn', () => {
it('render should return null if no props.openByClickOn', () => {
spyLifecycle(Portal);
spy(Portal.prototype, 'render');
mount(<Portal><p>Hi</p></Portal>);
assert.equal(Portal.prototype.render.returnValue, null);
Portal.prototype.render.restore();
});

it('should render the props.openByClickOn element', () => {
Expand Down

0 comments on commit 609050d

Please sign in to comment.