New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chai-react

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-react - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

2

bower.json
{
"name": "chai-react",
"main": "chai-react.js",
"version": "3.0.1",
"version": "4.0.0",
"authors": [

@@ -6,0 +6,0 @@ "Andrew Hanna <percyhanna@gmail.com>"

@@ -6,7 +6,7 @@ (function (chaiReact) {

module.exports = function (chai, utils) {
return chaiReact(chai, utils, require('react'), require('react-addons-test-utils'));
return chaiReact(chai, utils, require('react'), require('react-dom/test-utils'));
};
} else if (typeof define === "function" && define.amd) {
// AMD
define(['react', 'react-addons-test-utils'], function (React, TestUtils) {
define(['react', 'react-dom/test-utils'], function (React, TestUtils) {
return function (chai, utils) {

@@ -19,3 +19,3 @@ return chaiReact(chai, utils, React, TestUtils);

chai.use(function (chai, utils) {
return chaiReact(chai, utils, React, React.addons.TestUtils);
return chaiReact(chai, utils, React, ReactTestUtils);
});

@@ -39,2 +39,4 @@ }

}
} else if (component.nodeType === Node.TEXT_NODE) {
// Skip text nodes as they don't have any props
} else {

@@ -41,0 +43,0 @@ return component.props[prop];

@@ -12,3 +12,3 @@ {

],
"version": "3.0.1",
"version": "4.0.0",
"repository": {

@@ -31,10 +31,10 @@ "type": "git",

"chai-array": "0.0.1",
"core-js": "^2.6.5",
"create-react-class": "^15.6.3",
"envify": "^1.2.1",
"es5-shim": "^4.0.0",
"mocha": "1",
"mocha-phantomjs": "3",
"react": "^0.14.0",
"react-addons-test-utils": "^0.14.0",
"react-dom": "^0.14.0"
"react": "^16.0.0",
"react-dom": "^16.0.0"
}
}

@@ -30,5 +30,5 @@ describe('chai-react', function() {

var utils = React.addons.TestUtils;
var utils = ReactTestUtils;
var testComponent = React.createClass({
var testComponent = createReactClass({
render: function () {

@@ -47,3 +47,3 @@ return React.createElement(

var childComponent = React.createClass({
var childComponent = createReactClass({
getDefaultProps: function () {

@@ -80,3 +80,3 @@ return {

var singleComponent = React.createClass({
var singleComponent = createReactClass({
getDefaultProps: function () {

@@ -83,0 +83,0 @@ return {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc