From 770ccd01205bfeea530f4cb3da8b8264c93ce92a Mon Sep 17 00:00:00 2001 From: Enrique Arias Date: Fri, 28 Apr 2017 12:53:14 +0200 Subject: [PATCH 1/3] Updated dependencies. react-add --- .gitignore | 3 ++- package.json | 22 +++++++++++----------- tests/test.js | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 04c01ba..e82775f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -dist/ \ No newline at end of file +dist/ +*.un~ diff --git a/package.json b/package.json index 9f090e8..cf57b2f 100644 --- a/package.json +++ b/package.json @@ -20,22 +20,22 @@ ], "author": "atabel", "license": "MIT", - "repository" : { - "type" : "git", - "url" : "https://github.com/atabel/tape-jsx-equals.git" + "repository": { + "type": "git", + "url": "https://github.com/atabel/tape-jsx-equals.git" }, "homepage": "https://github.com/atabel/tape-jsx-equals", "devDependencies": { - "babel": "^5.8.23", - "eslint": "^1.7.1", - "eslint-plugin-react": "^3.6.2", - "extend-tape": "^1.0.1", + "babel": "^5.8.38", + "eslint": "^1.10.3", + "eslint-plugin-react": "^3.16.1", + "extend-tape": "^1.2.0", "faucet": "0.0.1", - "react": "^0.14.0", - "react-addons-test-utils": "^0.14.0", - "tape": "^4.2.1" + "react": "^15.5.4", + "react-dom": "^15.5.4", + "tape": "^4.6.3" }, "dependencies": { - "react-element-to-jsx-string": "^2.0.4" + "react-element-to-jsx-string": "^6.4.0" } } diff --git a/tests/test.js b/tests/test.js index d01dd64..2890f79 100644 --- a/tests/test.js +++ b/tests/test.js @@ -1,5 +1,5 @@ import React from 'react'; -import {createRenderer} from 'react-addons-test-utils'; +import { createRenderer } from 'react-dom/test-utils'; import tape from 'tape'; import addAssertions from 'extend-tape'; import jsxEquals from '..'; @@ -20,4 +20,4 @@ test('MyComponent is properly rendered', (t) => { t.jsxEquals(result,
); t.end(); -}); \ No newline at end of file +}); From 94d3a8365ef6b84e84c21fcdb86fa065578f0a57 Mon Sep 17 00:00:00 2001 From: Enrique Arias Date: Fri, 28 Apr 2017 13:31:02 +0200 Subject: [PATCH 2/3] Updated package version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cf57b2f..f888ae1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tape-jsx-equals", - "version": "1.0.0", + "version": "1.1.0", "description": "tape assertion to compare react components", "main": "dist/index.js", "scripts": { From 4126a56bc73b5e9f9deff8c202b22cf52d770a46 Mon Sep 17 00:00:00 2001 From: Enrique Arias Date: Sat, 6 May 2017 15:46:36 +0200 Subject: [PATCH 3/3] Updated renderer lib --- package.json | 2 +- tests/test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f888ae1..b81acbb 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "extend-tape": "^1.2.0", "faucet": "0.0.1", "react": "^15.5.4", - "react-dom": "^15.5.4", + "react-test-renderer": "^15.5.4", "tape": "^4.6.3" }, "dependencies": { diff --git a/tests/test.js b/tests/test.js index 2890f79..103fcee 100644 --- a/tests/test.js +++ b/tests/test.js @@ -1,11 +1,11 @@ import React from 'react'; -import { createRenderer } from 'react-dom/test-utils'; +import ReactShallowRenderer from 'react-test-renderer/shallow'; import tape from 'tape'; import addAssertions from 'extend-tape'; import jsxEquals from '..'; const test = addAssertions(tape, {jsxEquals}); -const renderer = createRenderer(); +const renderer = new ReactShallowRenderer(); const MyComponent = function ({color}) { const className = `box color-${color}`;