Files
test-repo/tests/test_declarations/test_declarations.js
T
Karl O'Keeffe 68a39454af Do not break long describe calls (#953)
This ensures that `describe` calls in test suites are whitelisted in the same way as `it` and `test` and never break across lines.
2017-03-08 13:24:28 -08:00

67 lines
2.1 KiB
JavaScript

// Shouldn't break
it("does something really long and complicated so I have to write a very long name for the test", () => {
console.log("hello!");
});
it("does something really long and complicated so I have to write a very long name for the test", function() {
console.log("hello!");
});
it(`does something really long and complicated so I have to write a very long name for the test`, function() {
console.log("hello!");
});
it(`{foo + bar} does something really long and complicated so I have to write a very long name for the test`, function() {
console.log("hello!");
});
it(`handles
some
newlines
does something really long and complicated so I have to write a very long name for the test`, () => {
console.log("hello!");
})
test("does something really long and complicated so I have to write a very long name for the test", (done) => {
console.log("hello!");
});
test(`does something really long and complicated so I have to write a very long name for the test`, (done) => {
console.log("hello!");
});
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!");
});
});
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!");
});
});
// Should break
it.only("does something really long and complicated so I have to write a very long name for the test", () => {
console.log("hello!");
});
it.only(`does something really long and complicated so I have to write a very long name for the test`, () => {
console.log("hello!");
});
it.only("does something really long and complicated so I have to write a very long name for the test", 10, () => {
console.log("hello!");
});
it.only.only("does something really long and complicated so I have to write a very long name for the test", () => {
console.log("hello!");
});
it.only.only("does something really long and complicated so I have to write a very long name for the test", (a, b, c) => {
console.log("hello!");
});