Skip to content

Commit

Permalink
Missed a few review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fuller committed Jun 25, 2017
1 parent 480e6dd commit 7873156
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specs/Modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ describe('State', () => {
).toEqual(
'myClass myClass_after-open'
);
unmountModal();
});

it('overrides overlay classes with custom object overlayClassName', () => {
Expand Down Expand Up @@ -209,7 +210,6 @@ describe('State', () => {
expect(
document.body.className.indexOf('custom-modal-open') > -1
).toBeTruthy();
unmountModal();
});

it('don\'t append class to document.body if modal is not open', () => {
Expand All @@ -233,7 +233,6 @@ describe('State', () => {
it('remove class from document.body when no modals opened', () => {
renderModal({ isOpen: true });
renderModal({ isOpen: true });

expect(isBodyWithReactModalOpenClass()).toBeTruthy();
unmountModal();
expect(isBodyWithReactModalOpenClass()).toBeTruthy();
Expand Down

0 comments on commit 7873156

Please sign in to comment.