Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 6 dependencies from npm #2286

Merged
merged 7 commits into from
Nov 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions addons/background/src/__tests__/BackgroundPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Background Panel', () => {
it('should have a default background value of transparent', () => {
const backgroundPanel = shallow(<BackgroundPanel channel={channel} api={mockedApi} />);

expect(backgroundPanel.state().backgrounds.length).toBe(0);
expect(backgroundPanel.state().backgrounds).toHaveLength(0);
});

it('should show setup instructions if no colors provided', () => {
Expand Down Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand Down
6 changes: 3 additions & 3 deletions addons/background/src/__tests__/Swatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ describe('Swatch', () => {
<Swatch value="bar" name="foo" setBackground={mockedSetBackround} />
).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', () => {
const markup = shallow(
<Swatch value="bar" name="foo" setBackground={mockedSetBackround} />
).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', () => {
Expand Down
4 changes: 2 additions & 2 deletions addons/background/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Background Decorator', () => {
<BackgroundDecorator story={testStory} channel={SpiedChannel} />
);

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', () => {
Expand Down Expand Up @@ -87,6 +87,6 @@ describe('Background Decorator', () => {
);

backgroundDecorator.setProps({ randomProp: true });
expect(story.mock.calls.length).toBe(1);
expect(story.mock.calls).toHaveLength(1);
});
});
2 changes: 1 addition & 1 deletion addons/comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/node": "^8.0.50",
"@types/react": "^16.0.21",
"@types/node": "^8.0.51",
"@types/react": "^16.0.22",
"raw-loader": "^0.5.1",
"react": "^16.1.0",
"react-dom": "^16.1.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/knobs/src/react/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions lib/channels/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
36 changes: 18 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down