From d730e2731bb9d3753032907c4e2ddacfe87c39e5 Mon Sep 17 00:00:00 2001 From: "Dependencies.io Bot" Date: Fri, 10 Nov 2017 20:36:44 +0000 Subject: [PATCH 1/7] Update eslint-plugin-jest from 21.2.0 to 21.3.2 in / --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f90b638de4f1..881f0f846a3c 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "eslint-config-airbnb": "^16.1.0", "eslint-config-prettier": "^2.7.0", "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jest": "^21.0.0", + "eslint-plugin-jest": "^21.3.2", "eslint-plugin-json": "^1.2.0", "eslint-plugin-jsx-a11y": "^6.0.2", "eslint-plugin-prettier": "^2.2.0", diff --git a/yarn.lock b/yarn.lock index 4ef615d1b456..531ff26314dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4050,9 +4050,9 @@ eslint-plugin-import@2.8.0, eslint-plugin-import@^2.8.0: minimatch "^3.0.3" read-pkg-up "^2.0.0" -eslint-plugin-jest@^21.0.0: - version "21.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.2.0.tgz#292044df9cf0866ad9c530e78e6528fae287b926" +eslint-plugin-jest@^21.3.2: + version "21.3.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.3.2.tgz#b1cefc05f0fed700eb40185a94d16f6d575d1ef9" eslint-plugin-json@^1.2.0: version "1.2.0" From c27faf29f1342beb00ee926c91d9316ae9e09b2c Mon Sep 17 00:00:00 2001 From: "Dependencies.io Bot" Date: Fri, 10 Nov 2017 20:39:22 +0000 Subject: [PATCH 2/7] Update prettier from 1.8.1 to 1.8.2 in / --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 881f0f846a3c..8cd64c5a3355 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "lodash": "^4.17.4", "nodemon": "^1.12.1", "npmlog": "^4.1.2", - "prettier": "^1.8.1", + "prettier": "^1.8.2", "puppeteer": "^0.12.0", "raf": "^3.4.0", "react": "^16.1.0", diff --git a/yarn.lock b/yarn.lock index 531ff26314dc..daafaedd3d52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8949,9 +8949,9 @@ prettier@^1.7.0: version "1.7.4" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa" -prettier@^1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.8.1.tgz#91064d778c08c85ac1cbe6b23195c34310d039f9" +prettier@^1.8.2: + version "1.8.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.8.2.tgz#bff83e7fd573933c607875e5ba3abbdffb96aeb8" pretty-bytes@^4.0.2: version "4.0.2" From 3519d8da84416a3ca39a1f245fee745c97e19240 Mon Sep 17 00:00:00 2001 From: "Dependencies.io Bot" Date: Fri, 10 Nov 2017 20:40:33 +0000 Subject: [PATCH 3/7] Update @types/node from 8.0.50 to 8.0.51 in addons/knobs --- addons/knobs/package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/knobs/package.json b/addons/knobs/package.json index a7e19b4be12b..8a037b0c94d1 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -28,7 +28,7 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@types/node": "^8.0.50", + "@types/node": "^8.0.51", "@types/react": "^16.0.21", "raw-loader": "^0.5.1", "react": "^16.1.0", diff --git a/yarn.lock b/yarn.lock index daafaedd3d52..cffb599213a5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -101,9 +101,9 @@ version "6.0.88" resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.88.tgz#f618f11a944f6a18d92b5c472028728a3e3d4b66" -"@types/node@^8.0.50": - version "8.0.50" - resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.50.tgz#dc545448e128c88c4eec7cd64025fcc3b7604541" +"@types/node@^8.0.51": + version "8.0.51" + resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.51.tgz#b31d716fb8d58eeb95c068a039b9b6292817d5fb" "@types/react@^16.0.18": version "16.0.19" From c789979b416f5fcdac47d23d492c286959b50687 Mon Sep 17 00:00:00 2001 From: "Dependencies.io Bot" Date: Fri, 10 Nov 2017 20:41:41 +0000 Subject: [PATCH 4/7] Update @types/react from 16.0.21 to 16.0.22 in addons/knobs --- addons/knobs/package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/knobs/package.json b/addons/knobs/package.json index 8a037b0c94d1..a1de4499bd9c 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -29,7 +29,7 @@ }, "devDependencies": { "@types/node": "^8.0.51", - "@types/react": "^16.0.21", + "@types/react": "^16.0.22", "raw-loader": "^0.5.1", "react": "^16.1.0", "react-dom": "^16.1.0", diff --git a/yarn.lock b/yarn.lock index cffb599213a5..8a23560982f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -113,9 +113,9 @@ version "16.0.20" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.20.tgz#dc16feb9c0bdf50e439482c6fd3c43d5a1d9f3b1" -"@types/react@^16.0.21": - version "16.0.21" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.21.tgz#1f4313594f784a477521a0795c46e7b832051ef3" +"@types/react@^16.0.22": + version "16.0.22" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.22.tgz#19ad106e124aceebd2b4d430a278d55413ee8759" JSONStream@^1.0.4: version "1.3.1" From 9383acdaf5ce6e4dabaae62a85577adb3a9be377 Mon Sep 17 00:00:00 2001 From: "Dependencies.io Bot" Date: Fri, 10 Nov 2017 20:42:46 +0000 Subject: [PATCH 5/7] Update ws from 3.3.0 to 3.3.1 in app/react-native --- app/react-native/package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/react-native/package.json b/app/react-native/package.json index f78069c10c96..b86d7a2dd4ea 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -68,7 +68,7 @@ "webpack": "^3.8.1", "webpack-dev-middleware": "^1.12.0", "webpack-hot-middleware": "^2.20.0", - "ws": "^3.3.0" + "ws": "^3.3.1" }, "devDependencies": { "babel-cli": "^6.26.0", diff --git a/yarn.lock b/yarn.lock index 8a23560982f7..0b59e39ec294 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12310,9 +12310,9 @@ ws@^3.0.0: safe-buffer "~5.1.0" ultron "~1.1.0" -ws@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.0.tgz#f8b948a1378af7efa702f5513da08dd516897c31" +ws@^3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.1.tgz#d97e34dee06a1190c61ac1e95f43cb60b78cf939" dependencies: async-limiter "~1.0.0" safe-buffer "~5.1.0" From 3a4d6f96c634041acda69508c29e4b1104ce5bc8 Mon Sep 17 00:00:00 2001 From: "Dependencies.io Bot" Date: Fri, 10 Nov 2017 20:43:54 +0000 Subject: [PATCH 6/7] Update react-render-html from 0.5.2 to 0.6.0 in addons/comments --- addons/comments/package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/comments/package.json b/addons/comments/package.json index 49cb31c72fd9..2c4c919fb786 100644 --- a/addons/comments/package.json +++ b/addons/comments/package.json @@ -32,7 +32,7 @@ "marked": "^0.3.6", "moment": "^2.19.0", "prop-types": "^15.6.0", - "react-render-html": "^0.5.2", + "react-render-html": "^0.6.0", "react-textarea-autosize": "^5.2.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 0b59e39ec294..764b2ff984fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9458,9 +9458,9 @@ react-proxy@^1.1.7: lodash "^4.6.1" react-deep-force-update "^1.0.0" -react-render-html@^0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/react-render-html/-/react-render-html-0.5.2.tgz#de5889ccb447221f8e64ff570bb5f77a8dc4f138" +react-render-html@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/react-render-html/-/react-render-html-0.6.0.tgz#1af51d859ed75474435a1c65c293a48e12c36627" dependencies: parse5 "^3.0.2" react-attr-converter "^0.3.1" From 03507ceb3b4621f4f05d02541c3753586cee5232 Mon Sep 17 00:00:00 2001 From: hypnos Date: Fri, 10 Nov 2017 23:59:40 +0300 Subject: [PATCH 7/7] Run lint --fix --- addons/background/src/__tests__/BackgroundPanel.js | 6 +++--- addons/background/src/__tests__/Swatch.js | 6 +++--- addons/background/src/__tests__/index.js | 4 ++-- addons/knobs/src/react/index.test.js | 2 +- lib/channels/src/index.test.js | 8 ++++---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/addons/background/src/__tests__/BackgroundPanel.js b/addons/background/src/__tests__/BackgroundPanel.js index 1b05ef8212dc..dd37d25380cc 100644 --- a/addons/background/src/__tests__/BackgroundPanel.js +++ b/addons/background/src/__tests__/BackgroundPanel.js @@ -27,7 +27,7 @@ describe('Background Panel', () => { it('should have a default background value of transparent', () => { const backgroundPanel = shallow(); - expect(backgroundPanel.state().backgrounds.length).toBe(0); + expect(backgroundPanel.state().backgrounds).toHaveLength(0); }); it('should show setup instructions if no colors provided', () => { @@ -72,7 +72,7 @@ describe('Background Panel', () => { // check to make sure the default bg was added const headings = backgroundPanel.find('h4'); - expect(headings.length).toBe(8); + expect(headings).toHaveLength(8); }); it('should allow the default swatch become the background color', () => { @@ -90,7 +90,7 @@ describe('Background Panel', () => { // check to make sure the default bg was added const headings = backgroundPanel.find('h4'); - expect(headings.length).toBe(8); + expect(headings).toHaveLength(8); }); it('should unset all swatches on receiving the background-unset message', () => { diff --git a/addons/background/src/__tests__/Swatch.js b/addons/background/src/__tests__/Swatch.js index 4d2956c5318f..c446b7ecfe12 100644 --- a/addons/background/src/__tests__/Swatch.js +++ b/addons/background/src/__tests__/Swatch.js @@ -17,7 +17,7 @@ describe('Swatch', () => { ).html(); - expect(markup.match(/foo/gim).length).toBe(1); + expect(markup.match(/foo/gim)).toHaveLength(1); }); it('should render the value of the swatch and set it to be the background', () => { @@ -25,8 +25,8 @@ describe('Swatch', () => { ).html(); - expect(markup.match(/background:bar/gim).length).toBe(1); - expect(markup.match(/bar/gim).length).toBe(2); + expect(markup.match(/background:bar/gim)).toHaveLength(1); + expect(markup.match(/bar/gim)).toHaveLength(2); }); it('should emit message on click', () => { diff --git a/addons/background/src/__tests__/index.js b/addons/background/src/__tests__/index.js index 2e940df3fb27..d097228959cd 100644 --- a/addons/background/src/__tests__/index.js +++ b/addons/background/src/__tests__/index.js @@ -31,7 +31,7 @@ describe('Background Decorator', () => { ); - expect(backgroundDecorator.html().match(/background:transparent/gim).length).toBe(1); + expect(backgroundDecorator.html().match(/background:transparent/gim)).toHaveLength(1); }); it('should set internal state when background event called', () => { @@ -87,6 +87,6 @@ describe('Background Decorator', () => { ); backgroundDecorator.setProps({ randomProp: true }); - expect(story.mock.calls.length).toBe(1); + expect(story.mock.calls).toHaveLength(1); }); }); diff --git a/addons/knobs/src/react/index.test.js b/addons/knobs/src/react/index.test.js index d6f560ada1c8..75b1a08e47f1 100644 --- a/addons/knobs/src/react/index.test.js +++ b/addons/knobs/src/react/index.test.js @@ -17,7 +17,7 @@ describe('React Handler', () => { const wrappedStory = reactHandler(testChannel, testStore)(testStory)(testContext); const wrapper = shallow(wrappedStory); - expect(wrapper.find('#test-story').length).toBe(1); + expect(wrapper.find('#test-story')).toHaveLength(1); const storyWrapperProps = wrappedStory.props; expect(storyWrapperProps.channel).toEqual(testChannel); diff --git a/lib/channels/src/index.test.js b/lib/channels/src/index.test.js index 987edb2f6829..9adc28d79ef4 100644 --- a/lib/channels/src/index.test.js +++ b/lib/channels/src/index.test.js @@ -100,8 +100,8 @@ describe('Channel', () => { channel.once('type-1', 11); channel.once('type-2', 21); channel.once('type-2', 22); - expect(channel._listeners['type-1'].length).toEqual(1); - expect(channel._listeners['type-2'].length).toEqual(2); + expect(channel._listeners['type-1']).toHaveLength(1); + expect(channel._listeners['type-2']).toHaveLength(2); }); it('should call event listeners only once', () => { @@ -131,8 +131,8 @@ describe('Channel', () => { channel.prependOnceListener('type-1', 11); channel.prependOnceListener('type-2', 21); channel.prependOnceListener('type-2', 22); - expect(channel._listeners['type-1'].length).toEqual(1); - expect(channel._listeners['type-2'].length).toEqual(2); + expect(channel._listeners['type-1']).toHaveLength(1); + expect(channel._listeners['type-2']).toHaveLength(2); }); it('should call event listeners only once', () => {