-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Alexander
committed
Apr 25, 2018
1 parent
d9db749
commit b8c9f1d
Showing
13 changed files
with
286 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
packages/material-ui-lab/src/ToggleButton/ToggleButton.spec.js
This file was deleted.
Oops, something went wrong.
71 changes: 71 additions & 0 deletions
71
packages/material-ui-lab/src/ToggleButton/ToggleButton.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// import React from 'react'; | ||
// import { assert } from 'chai'; | ||
// import { createShallow, createRender, getClasses } from '../test-utils'; | ||
// import ToggleButton from './ToggleButton'; | ||
// import ButtonBase from '../ButtonBase'; | ||
// | ||
// describe('<ToggleButton />', () => { | ||
// let shallow; | ||
// let render; | ||
// let classes; | ||
// | ||
// before(() => { | ||
// shallow = createShallow({ dive: true }); | ||
// render = createRender(); | ||
// classes = getClasses(<ToggleButton>Hello World</ToggleButton>); | ||
// }); | ||
// | ||
// it('should render a <ButtonBase> element', () => { | ||
// const wrapper = shallow(<ToggleButton>Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.type(), ButtonBase); | ||
// assert.strictEqual( | ||
// wrapper.props().type, | ||
// 'button', | ||
// 'should render with the button type attribute', | ||
// ); | ||
// }); | ||
// | ||
// it('should render the custom className and the root class', () => { | ||
// const wrapper = shallow(<ToggleButton className="test-class-name">Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.is('.test-class-name'), true, 'should pass the test className'); | ||
// assert.strictEqual(wrapper.hasClass(classes.root), true); | ||
// }); | ||
// | ||
// it('should render a selected button', () => { | ||
// const wrapper = shallow(<ToggleButton selected>Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.hasClass(classes.root), true); | ||
// assert.strictEqual(wrapper.hasClass(classes.selected), true, 'should have the selected class'); | ||
// }); | ||
// | ||
// it('should have a ripple by default', () => { | ||
// const wrapper = shallow(<ToggleButton>Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.props().disableRipple, false); | ||
// }); | ||
// | ||
// it('should pass disableRipple to ButtonBase', () => { | ||
// const wrapper = shallow(<ToggleButton disableRipple>Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.props().disableRipple, true); | ||
// }); | ||
// | ||
// it('should have a focusRipple by default', () => { | ||
// const wrapper = shallow(<ToggleButton>Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.props().focusRipple, true, 'should set focusRipple to true'); | ||
// }); | ||
// | ||
// it('should pass disableFocusRipple to ButtonBase', () => { | ||
// const wrapper = shallow(<ToggleButton disableFocusRipple>Hello World</ToggleButton>); | ||
// assert.strictEqual(wrapper.props().focusRipple, false, 'should set focusRipple to false'); | ||
// }); | ||
// | ||
// describe('server side', () => { | ||
// // Only run the test on node. | ||
// if (!/jsdom/.test(window.navigator.userAgent)) { | ||
// return; | ||
// } | ||
// | ||
// it('should server side render', () => { | ||
// const markup = render(<ToggleButton>Hello World</ToggleButton>); | ||
// assert.strictEqual(markup.text(), 'Hello World'); | ||
// }); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 0 additions & 139 deletions
139
packages/material-ui-lab/src/ToggleButton/ToggleButtonGroup.spec.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.