From db85f8d1a93038987f06869e77a693c6cab6485a Mon Sep 17 00:00:00 2001 From: Maurice Dalderup Date: Thu, 17 Oct 2019 18:25:18 +0200 Subject: [PATCH] chore(tests): fix snapshots --- .../__snapshots__/AppButton.test.js.snap | 1 + .../__snapshots__/AppStore.test.js.snap | 1 + .../__snapshots__/CategoryTitle.test.js.snap | 1 + package.json | 2 +- yarn.lock | 75 ++++++++++++++----- 5 files changed, 61 insertions(+), 19 deletions(-) diff --git a/__tests__/renderer/appstore/components/AppButton/__snapshots__/AppButton.test.js.snap b/__tests__/renderer/appstore/components/AppButton/__snapshots__/AppButton.test.js.snap index 6b518c3c0..66b5c148b 100644 --- a/__tests__/renderer/appstore/components/AppButton/__snapshots__/AppButton.test.js.snap +++ b/__tests__/renderer/appstore/components/AppButton/__snapshots__/AppButton.test.js.snap @@ -10,6 +10,7 @@ ReactWrapper { "simulateError": [Function], "simulateEvent": [Function], "unmount": [Function], + "wrapInvoke": [Function], }, Symbol(enzyme.__root__): [Circular], Symbol(enzyme.__node__): Object { diff --git a/__tests__/renderer/appstore/components/AppStore/__snapshots__/AppStore.test.js.snap b/__tests__/renderer/appstore/components/AppStore/__snapshots__/AppStore.test.js.snap index c46ed4cea..67936660f 100644 --- a/__tests__/renderer/appstore/components/AppStore/__snapshots__/AppStore.test.js.snap +++ b/__tests__/renderer/appstore/components/AppStore/__snapshots__/AppStore.test.js.snap @@ -10,6 +10,7 @@ ReactWrapper { "simulateError": [Function], "simulateEvent": [Function], "unmount": [Function], + "wrapInvoke": [Function], }, Symbol(enzyme.__root__): [Circular], Symbol(enzyme.__node__): Object { diff --git a/__tests__/renderer/appstore/components/CategoryTitle/__snapshots__/CategoryTitle.test.js.snap b/__tests__/renderer/appstore/components/CategoryTitle/__snapshots__/CategoryTitle.test.js.snap index b7243eb89..0048c5c0c 100644 --- a/__tests__/renderer/appstore/components/CategoryTitle/__snapshots__/CategoryTitle.test.js.snap +++ b/__tests__/renderer/appstore/components/CategoryTitle/__snapshots__/CategoryTitle.test.js.snap @@ -10,6 +10,7 @@ ReactWrapper { "simulateError": [Function], "simulateEvent": [Function], "unmount": [Function], + "wrapInvoke": [Function], }, Symbol(enzyme.__root__): [Circular], Symbol(enzyme.__node__): Object { diff --git a/package.json b/package.json index 238cec7e9..c893322f1 100644 --- a/package.json +++ b/package.json @@ -110,7 +110,7 @@ "electron-devtools-installer": "2.2.4", "electron-webpack": "1.13.0", "enzyme": "3.10.0", - "enzyme-adapter-react-16": "1.14.0", + "enzyme-adapter-react-16": "1.15.1", "eslint": "6.5.1", "eslint-config-airbnb": "18.0.1", "eslint-config-prettier": "6.4.0", diff --git a/yarn.lock b/yarn.lock index 921e8415f..c6124c0c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -628,7 +628,7 @@ agent-base@~4.2.1: dependencies: es6-promisify "^5.0.0" -airbnb-prop-types@^2.13.2: +airbnb-prop-types@^2.15.0: version "2.15.0" resolved "https://registry.yarnpkg.com/airbnb-prop-types/-/airbnb-prop-types-2.15.0.tgz#5287820043af1eb469f5b0af0d6f70da6c52aaef" integrity sha512-jUh2/hfKsRjNFC4XONQrxo/n/3GG4Tn6Hl0WlFQN5PY9OMC9loSCoAYKnZsWaP8wEfd5xcrPloK0Zg6iS1xwVA== @@ -4543,31 +4543,40 @@ entities@^2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.0.tgz#68d6084cab1b079767540d80e56a39b423e4abf4" integrity sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw== -enzyme-adapter-react-16@1.14.0: - version "1.14.0" - resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.14.0.tgz#204722b769172bcf096cb250d33e6795c1f1858f" - integrity sha512-7PcOF7pb4hJUvjY7oAuPGpq3BmlCig3kxXGi2kFx0YzJHppqX1K8IIV9skT1IirxXlu8W7bneKi+oQ10QRnhcA== +enzyme-adapter-react-16@1.15.1: + version "1.15.1" + resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.15.1.tgz#8ad55332be7091dc53a25d7d38b3485fc2ba50d5" + integrity sha512-yMPxrP3vjJP+4wL/qqfkT6JAIctcwKF+zXO6utlGPgUJT2l4tzrdjMDWGd/Pp1BjHBcljhN24OzNEGRteibJhA== dependencies: - enzyme-adapter-utils "^1.12.0" + enzyme-adapter-utils "^1.12.1" + enzyme-shallow-equal "^1.0.0" has "^1.0.3" object.assign "^4.1.0" object.values "^1.1.0" prop-types "^15.7.2" - react-is "^16.8.6" + react-is "^16.10.2" react-test-renderer "^16.0.0-0" semver "^5.7.0" -enzyme-adapter-utils@^1.12.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.12.0.tgz#96e3730d76b872f593e54ce1c51fa3a451422d93" - integrity sha512-wkZvE0VxcFx/8ZsBw0iAbk3gR1d9hK447ebnSYBf95+r32ezBq+XDSAvRErkc4LZosgH8J7et7H7/7CtUuQfBA== +enzyme-adapter-utils@^1.12.1: + version "1.12.1" + resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.12.1.tgz#e828e0d038e2b1efa4b9619ce896226f85c9dd88" + integrity sha512-KWiHzSjZaLEoDCOxY8Z1RAbUResbqKN5bZvenPbfKtWorJFVETUw754ebkuCQ3JKm0adx1kF8JaiR+PHPiP47g== dependencies: - airbnb-prop-types "^2.13.2" - function.prototype.name "^1.1.0" + airbnb-prop-types "^2.15.0" + function.prototype.name "^1.1.1" object.assign "^4.1.0" - object.fromentries "^2.0.0" + object.fromentries "^2.0.1" prop-types "^15.7.2" - semver "^5.6.0" + semver "^5.7.0" + +enzyme-shallow-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/enzyme-shallow-equal/-/enzyme-shallow-equal-1.0.0.tgz#d8e4603495e6ea279038eef05a4bf4887b55dc69" + integrity sha512-VUf+q5o1EIv2ZaloNQQtWCJM9gpeux6vudGVH6vLmfPXFLRuxl5+Aq3U260wof9nn0b0i+P5OEUXm1vnxkRpXQ== + dependencies: + has "^1.0.3" + object-is "^1.0.1" enzyme@3.10.0: version "3.10.0" @@ -4626,6 +4635,22 @@ es-abstract@^1.10.0, es-abstract@^1.11.0, es-abstract@^1.12.0, es-abstract@^1.13 string.prototype.trimleft "^2.0.0" string.prototype.trimright "^2.0.0" +es-abstract@^1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.15.0.tgz#8884928ec7e40a79e3c9bc812d37d10c8b24cc57" + integrity sha512-bhkEqWJ2t2lMeaJDuk7okMkJWI/yqgH/EoGwpcvv0XW9RWQsRspI4wt6xuyuvMvvQE3gg/D9HXppgk21w78GyQ== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.0" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-inspect "^1.6.0" + object-keys "^1.1.1" + string.prototype.trimleft "^2.1.0" + string.prototype.trimright "^2.1.0" + es-to-primitive@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" @@ -9224,6 +9249,16 @@ object.fromentries@^2.0.0: function-bind "^1.1.1" has "^1.0.1" +object.fromentries@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.1.tgz#050f077855c7af8ae6649f45c80b16ee2d31e704" + integrity sha512-PUQv8Hbg3j2QX0IQYv3iAGCbGcu4yY4KQ92/dhA4sFSixBmSmp13UpDLs6jGK8rBtbmhNNIK99LD2k293jpiGA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.15.0" + function-bind "^1.1.1" + has "^1.0.3" + object.getownpropertydescriptors@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" @@ -10990,6 +11025,11 @@ react-is@16.8.6: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16" integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA== +react-is@^16.10.2: + version "16.10.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.10.2.tgz#984120fd4d16800e9a738208ab1fba422d23b5ab" + integrity sha512-INBT1QEgtcCCgvccr5/86CfD71fw9EPmDxgiJX4I2Ddr6ZsV6iFXsuby+qWJPtmNuMY0zByTsG4468P7nHuNWA== + react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.6, react-is@^16.9.0: version "16.10.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.10.1.tgz#0612786bf19df406502d935494f0450b40b8294f" @@ -12458,7 +12498,6 @@ snyk@1.235.0: needle "^2.2.4" opn "^5.5.0" os-name "^3.0.0" - proxy-agent "*" proxy-from-env "^1.0.0" semver "^6.0.0" snyk-config "^2.2.1" @@ -12873,7 +12912,7 @@ string.prototype.trim@^1.1.2: es-abstract "^1.13.0" function-bind "^1.1.1" -string.prototype.trimleft@^2.0.0: +string.prototype.trimleft@^2.0.0, string.prototype.trimleft@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634" integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw== @@ -12881,7 +12920,7 @@ string.prototype.trimleft@^2.0.0: define-properties "^1.1.3" function-bind "^1.1.1" -string.prototype.trimright@^2.0.0: +string.prototype.trimright@^2.0.0, string.prototype.trimright@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58" integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg==