-
-
Save qunabu/084e9c2016d4e55e348095614d7b7979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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