Skip to content

Commit

Permalink
update modal test
Browse files Browse the repository at this point in the history
  • Loading branch information
echenley committed Sep 25, 2015
1 parent f8eb96e commit 496753f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/components/Modal-test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ describe('Modal Component', () => {
modal = shallowRenderer.getRenderOutput();
});

it('should render a div with className "modal-overlay"', () => {
it('should render <div className="modal-overlay" />', () => {
expect(modal.props.className).to.equal('modal-overlay');
});

it('should render an inner div with className "modal-inner"', () => {
it('should render a child <Link className="modal-inner" />', () => {
const modalInner = modal.props.children;
expect(modalInner.props.className).to.equal('modal-inner');
});

it('should render a link with className "modal-close"', () => {
it('should render a child <a className="modal-close" />', () => {
const modalClose = modal.props.children.props.children[0];
expect(modalClose.props.className).to.equal('modal-close');
});
Expand Down

0 comments on commit 496753f

Please sign in to comment.