Skip to content

Commit 9b6671e

Browse files
committed
test(consistent-spacing-between-blocks): Add tests for same line
1 parent 461b7d0 commit 9b6671e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/rules/consistent-spacing-between-blocks.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,27 @@ runRuleTester('consistent-spacing-between-blocks', rule, {
204204
test('does something', () => {});
205205
`,
206206
},
207+
{
208+
code: dedent`
209+
test("first", () => {});test("second", () => {});
210+
test.describe("suite", () => {});test("test", () => {});
211+
`,
212+
errors: [
213+
{ line: 1, messageId: 'missingWhitespace' },
214+
{ line: 2, messageId: 'missingWhitespace' },
215+
{ line: 2, messageId: 'missingWhitespace' },
216+
],
217+
name: 'Same line test calls',
218+
output: dedent`
219+
test("first", () => {});
220+
221+
test("second", () => {});
222+
223+
test.describe("suite", () => {});
224+
225+
test("test", () => {});
226+
`,
227+
},
207228
],
208229
valid: [
209230
{

0 commit comments

Comments
 (0)