Skip to content

Instantly share code, notes, and snippets.

@qunabu
Created November 26, 2020 10:25
Show Gist options
  • Save qunabu/084e9c2016d4e55e348095614d7b7979 to your computer and use it in GitHub Desktop.
Save qunabu/084e9c2016d4e55e348095614d7b7979 to your computer and use it in GitHub Desktop.
// Good
describe("[unit of work]", () => {
it("should [expected behaviour] when [scenario/context]", () => {});
});
// Better
describe("[unit of work]", () => {
describe("when [scenario/context]", () => {
it("should [expected behaviour]", () => {});
});
});
// Best
describe("The Gallery instance", () => {
describe("when initialized", () => {
it("should properly calculate the thumb size", () => {});
it("should properly calculate the thumbs count", () => {});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment