Skip to content

Do not break long describe calls - #953

Merged
vjeux merged 1 commit into
prettier:masterfrom
karl:describe
Mar 8, 2017
Merged

vjeux merged 1 commit into
prettier:masterfrom
karl:describe

Conversation

@karl

@karl karl commented Mar 8, 2017

Copy link
Copy Markdown
Collaborator

This ensures that describe calls in test suites are whitelisted in the same way as it and test and never break across lines.

As (briefly) discussed with @vjeux in #159

Before:

describe(
  "does something really long and complicated so I have to write a very long name for the describe block",
  () => {
    it("an example test", done => {
      console.log("hello!");
    });
  }
);

After:

describe("does something really long and complicated so I have to write a very long name for the describe block", () => {
  it("an example test", done => {
    console.log("hello!");
  });
});

@vjeux

vjeux commented Mar 8, 2017

Copy link
Copy Markdown
Contributor

Awesome! do you mind rebasing and i'll merge it.

cc @matthewwithanm, we were talking about it during lunch

@karl

karl commented Mar 8, 2017

Copy link
Copy Markdown
Collaborator Author

Yep, working on the rebasing now!

This ensures that `describe` calls in test suites are whitelisted in the same way as `it` and `test` and never break across lines.
@karl

karl commented Mar 8, 2017

Copy link
Copy Markdown
Collaborator Author

OK, that should be good to go! 🤞🏻

I'm heading offline now, please modify/merge as you see fit. If any tweaks are required I should be able to make them tomorrow.

@vjeux
vjeux merged commit 68a3945 into prettier:master Mar 8, 2017
@vjeux

vjeux commented Mar 8, 2017

Copy link
Copy Markdown
Contributor

This looks perfect, thanks a lot!

@karl
karl deleted the describe branch March 8, 2017 21:24
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 21, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants