Skip to content

Commit 400ac13

Browse files
klootsdiasbruno
authored andcommitted
[chore] make sure all tests meet line-length requirement.
1 parent 18a15eb commit 400ac13

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

specs/Modal.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default () => {
139139
document.activeElement.should.be.eql(mcontent(modal));
140140
});
141141

142-
it("does not focus the modal content when shouldFocusAfterRender is false", () => {
142+
it("does not focus modal content if shouldFocusAfterRender is false", () => {
143143
const modal = renderModal(
144144
{ isOpen: true, shouldFocusAfterRender: false },
145145
null
@@ -317,7 +317,7 @@ export default () => {
317317
isBodyWithReactModalOpenClass("testBodyClass").should.not.be.ok();
318318
});
319319

320-
it("should not remove classes from document.body when rendering unopened modal", () => {
320+
it("should not remove classes from document.body if modal is closed", () => {
321321
renderModal({ isOpen: true });
322322
isBodyWithReactModalOpenClass().should.be.ok();
323323
renderModal({ isOpen: false, bodyOpenClassName: "testBodyClass" });
@@ -340,7 +340,7 @@ export default () => {
340340
unmountModal();
341341
});
342342

343-
it("adding/removing aria-hidden without an appElement will try to fallback to document.body", () => {
343+
it("uses document.body for aria-hidden if no appElement", () => {
344344
ariaAppHider.documentNotReadyOrSSRTesting();
345345
const node = document.createElement("div");
346346
ReactDOM.render(<Modal isOpen />, node);
@@ -349,7 +349,7 @@ export default () => {
349349
should(document.body.getAttribute("aria-hidden")).not.be.ok();
350350
});
351351

352-
it("raise an exception if appElement is a selector and no elements were found.", () => {
352+
it("raises an exception if the appElement selector does not match", () => {
353353
should(() => ariaAppHider.setElement(".test")).throw();
354354
});
355355

specs/Modal.style.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default () => {
1111
mcontent(modal).style.top.should.be.eql("");
1212
});
1313

14-
it("overrides the default styles when a custom overlayClassName is used", () => {
14+
it("overrides the default styles when using custom overlayClassName", () => {
1515
const modal = renderModal({
1616
isOpen: true,
1717
overlayClassName: "myOverlayClass"

0 commit comments

Comments
 (0)