Skip to content

Commit

Permalink
[core] Upgrade dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 25, 2018
1 parent cac28e7 commit 3f35789
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 78 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

[![npm package](https://img.shields.io/npm/v/@material-ui/core/latest.svg)](https://www.npmjs.com/package/@material-ui/core)
[![npm downloads](https://img.shields.io/npm/dm/@material-ui/core.svg)](https://www.npmjs.com/package/@material-ui/core)
[![CircleCI](https://img.shields.io/circleci/project/github/mui-org/material-ui/v1-beta.svg)](https://circleci.com/gh/mui-org/material-ui/tree/v1-beta)
[![CircleCI](https://img.shields.io/circleci/project/github/mui-org/material-ui/master.svg)](https://circleci.com/gh/mui-org/material-ui/tree/master)
[![Gitter](https://img.shields.io/badge/gitter-join%20chat-f81a65.svg)](https://gitter.im/callemall/material-ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Coverage Status](https://img.shields.io/codecov/c/github/mui-org/material-ui/v1-beta.svg)](https://codecov.io/gh/mui-org/material-ui/branch/v1-beta)
[![Coverage Status](https://img.shields.io/codecov/c/github/mui-org/material-ui/master.svg)](https://codecov.io/gh/mui-org/material-ui/branch/master)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1320/badge)](https://bestpractices.coreinfrastructure.org/projects/1320)
![Code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)
[![Follow on Twitter](https://img.shields.io/twitter/follow/MaterialUI.svg?label=follow+Material-UI)](https://twitter.com/MaterialUI)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"doctrine": "^2.0.0",
"downshift": "^2.0.0",
"dtslint": "^0.3.0",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.0",
"enzyme": "^3.5.0",
"enzyme-adapter-react-16": "^1.3.0",
"eslint": "^5.0.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-import-resolver-webpack": "^0.10.0",
Expand All @@ -103,12 +103,12 @@
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-spellcheck": "^0.0.10",
"fg-loadcss": "^2.0.1",
"file-loader": "^1.1.5",
"file-loader": "^2.0.0",
"fs-extra": "^7.0.0",
"glob": "^7.1.2",
"gm": "^1.23.0",
"isomorphic-fetch": "^2.2.1",
"jsdom": "^11.3.0",
"jsdom": "^12.0.0",
"jss-rtl": "^0.2.1",
"karma": "^3.0.0",
"karma-browserstack-launcher": "^1.3.0",
Expand Down
9 changes: 5 additions & 4 deletions packages/material-ui/src/Modal/Modal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import keycode from 'keycode';
import consoleErrorMock from 'test/utils/consoleErrorMock';
import { createShallow, createMount, getClasses, unwrap } from '../test-utils';
import Fade from '../Fade';
import Portal from '../Portal';
import Backdrop from '../Backdrop';
import Modal from './Modal';

Expand Down Expand Up @@ -40,10 +41,10 @@ describe('<Modal />', () => {
<p>Hello World</p>
</ModalNaked>,
);
assert.strictEqual(wrapper.childAt(0).name(), 'Portal', 'should render a portal when openn');
const modal = wrapper.childAt(0).childAt(0);
assert.strictEqual(wrapper.childAt(0).name(), 'Portal');
const modal = wrapper.childAt(0).childAt(0).childAt(0);
assert.strictEqual(modal.type(), 'div');
assert.strictEqual(modal.hasClass(classes.root), true, 'should have the root class');
assert.strictEqual(modal.hasClass(classes.root), true);
});
});

Expand Down Expand Up @@ -159,7 +160,7 @@ describe('<Modal />', () => {
it('should render the content into the portal', () => {
wrapper.setProps({ open: true });
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
const container = document.getElementById('container');
Expand Down
7 changes: 4 additions & 3 deletions packages/material-ui/src/Select/SelectInput.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { spy } from 'sinon';
import keycode from 'keycode';
import { createShallow, createMount } from '../test-utils';
import Menu from '../Menu';
import Portal from '../Portal';
import MenuItem from '../MenuItem';
import SelectInput from './SelectInput';

Expand Down Expand Up @@ -151,7 +152,7 @@ describe('<SelectInput />', () => {
wrapper.find(`.${defaultProps.classes.select}`).simulate('click');
assert.strictEqual(wrapper.state().open, true);
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
portalLayer.querySelectorAll('li')[1].click();
Expand Down Expand Up @@ -204,7 +205,7 @@ describe('<SelectInput />', () => {
assert.strictEqual(wrapper.state().open, true);

const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
const backdrop = portalLayer.querySelector('[data-mui-test="Backdrop"]');
Expand Down Expand Up @@ -321,7 +322,7 @@ describe('<SelectInput />', () => {
wrapper.find(`.${defaultProps.classes.select}`).simulate('click');
assert.strictEqual(wrapper.state().open, true);
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();

Expand Down
11 changes: 6 additions & 5 deletions packages/material-ui/test/integration/Menu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReactWrapper } from 'enzyme';
import TestUtils from 'react-dom/test-utils';
import { createMount } from 'packages/material-ui/src/test-utils';
import Popover from 'packages/material-ui/src/Popover';
import Portal from 'packages/material-ui/src/Portal';
import SimpleMenu from './fixtures/menus/SimpleMenu';

function simulateEvent(node, event, mock) {
Expand Down Expand Up @@ -44,7 +45,7 @@ describe('<Menu> integration', () => {
it('should focus the first item as nothing has been selected', () => {
wrapper.setState({ open: true });
portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
assert.strictEqual(
Expand Down Expand Up @@ -124,7 +125,7 @@ describe('<Menu> integration', () => {
it('should focus the 3rd selected item', () => {
wrapper.setState({ open: true });
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
assert.strictEqual(
Expand All @@ -136,7 +137,7 @@ describe('<Menu> integration', () => {

it('should select the 2nd item and close the menu', () => {
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
const item = portalLayer.querySelector('ul').children[1];
Expand All @@ -148,7 +149,7 @@ describe('<Menu> integration', () => {
it('should focus the 2nd selected item', () => {
wrapper.setState({ open: true });
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
assert.strictEqual(
Expand All @@ -167,7 +168,7 @@ describe('<Menu> integration', () => {
beforeEach(() => {
wrapper = mount(<SimpleMenu transitionDuration={0} />);
wrapper.setState({ open: true });
const portal = wrapper.find('Portal').props().children;
const portal = wrapper.find(Portal).props().children;
const portalWrapper = new ReactWrapper(portal);
list = portalWrapper.find('List');
backdrop = portalWrapper.find('Backdrop');
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/test/integration/Select.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { assert } from 'chai';
import { createMount } from 'packages/material-ui/src/test-utils';
import Portal from 'packages/material-ui/src/Portal';
import SelectAndDialog from './fixtures/select/SelectAndDialog';

describe('<Select> integration', () => {
Expand All @@ -18,7 +19,7 @@ describe('<Select> integration', () => {
it('should focus the selected item', done => {
const wrapper = mount(<SelectAndDialog open />);
const portalLayer = wrapper
.find('Portal')
.find(Portal)
.instance()
.getMountNode();
const selectDisplay = portalLayer.querySelector('[data-mui-test="SelectDisplay"]');
Expand Down
Loading

0 comments on commit 3f35789

Please sign in to comment.