Skip to content

Commit

Permalink
Merge pull request #88 from yahoo/react15.0
Browse files Browse the repository at this point in the history
react 15 support
  • Loading branch information
kaesonho committed Apr 12, 2016
2 parents 9f7aa20 + ab98cb4 commit 9dad5e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"object-assign": "^4.0.0",
"pre-commit": "^1.0.0",
"promise": "^7.0.1",
"react": "^15.0.0-rc.1",
"react-dom": "^15.0.0-rc.1",
"react": "^15.0.0",
"react-dom": "^15.0.0",
"xunit-file": "^0.0.7"
},
"keywords": [
Expand All @@ -53,8 +53,8 @@
"instrumentation"
],
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0-rc.1",
"react-dom": "^0.14.0 || ^15.0.0-rc.1"
"react": "^0.14.0 || ^15.0.0",
"react-dom": "^0.14.0 || ^15.0.0"
},
"precommit": [
"lint",
Expand Down
9 changes: 8 additions & 1 deletion tests/unit/utils/createI13nNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,14 @@ describe('createI13nNode', function () {
}, 1000);
});

it('should not cause error if we pass a undefined to createI13nNode', function () {
it('should not cause error if we pass a undefined to createI13nNode', function (done) {
console.warn = function (msg) {
expect(msg).to.equal('You are passing a null component into createI13nNode');
done();
};
console.trace = function () {
// no-op
};
var I13nTestComponent = createI13nNode(undefined);
expect(I13nTestComponent).to.eql(undefined);
});
Expand Down
3 changes: 0 additions & 3 deletions tests/unit/utils/setupI13n.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ describe('setupI13n', function () {
});

afterEach(function () {
delete global.window;
delete global.document;
delete global.navigator;
mockery.disable();
});

Expand Down

0 comments on commit 9dad5e8

Please sign in to comment.