Skip to content

Commit

Permalink
Bump react dependencies to v15. (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingScooty authored and dead-horse committed Jul 27, 2016
1 parent 91d332c commit 0ed543a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -23,8 +23,8 @@
"dependencies": {
"copy-to": "~2.0.1",
"js-beautify": "~1.5.6",
"react": "~0.14.2",
"react-dom": "~0.14.2"
"react": "^15.0.1",
"react-dom": "^15.0.1"
},
"devDependencies": {
"autod": "2",
Expand Down
6 changes: 3 additions & 3 deletions test/index.test.js
Expand Up @@ -40,7 +40,7 @@ describe('koa-react-view', function () {
request(app.listen())
.get('/')
.expect(200)
.expect(/<!DOCTYPE html><div data-reactid="\.[a-z0-9]*" data-react-checksum="[0-9\-]*"><\/div>/i, done);
.expect(/<!DOCTYPE html><div data-reactroot="" data-reactid="[0-9\-]*" data-react-checksum="[0-9\-]*"><\/div>/i, done);
});

it('should support ReactDOMServer.renderToString without locals', function (done) {
Expand All @@ -52,7 +52,7 @@ describe('koa-react-view', function () {
request(app.listen())
.get('/')
.expect(200)
.expect(/<!DOCTYPE html><div data-reactid="\.[a-z0-9]*" data-react-checksum="[0-9\-]*"><\/div>/i, done);
.expect(/<!DOCTYPE html><div data-reactroot="" data-reactid="[0-9\-]*" data-react-checksum="[0-9\-]*"><\/div>/i, done);
});

it('should support ReactDOMServer.renderToString using internals option', function (done) {
Expand All @@ -66,7 +66,7 @@ describe('koa-react-view', function () {
request(app.listen())
.get('/')
.expect(200)
.expect(/<!DOCTYPE html><div data-reactid="\.[a-z0-9]*" data-react-checksum="[0-9\-]*"><\/div>/i, done);
.expect(/<!DOCTYPE html><div data-reactroot="" data-reactid="[0-9\-]*" data-react-checksum="[0-9\-]*"><\/div>/i, done);
});

it('should support ctx.state', function (done) {
Expand Down

0 comments on commit 0ed543a

Please sign in to comment.