Skip to content

Commit 2f99c06

Browse files
fix(prefer-importing-jest-globals): fix indenting
1 parent 090fd91 commit 2f99c06

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/rules/__tests__/prefer-importing-jest-globals.test.ts

+28-28
Original file line numberDiff line numberDiff line change
@@ -548,22 +548,22 @@ ruleTester.run('prefer-importing-jest-globals', rule, {
548548
},
549549
{
550550
code: dedent`
551-
console.log('hello');
552-
const onClick = jest.fn();
553-
describe("suite", () => {
554-
test("foo");
555-
expect(onClick).toHaveBeenCalled();
556-
})
557-
`,
551+
console.log('hello');
552+
const onClick = jest.fn();
553+
describe("suite", () => {
554+
test("foo");
555+
expect(onClick).toHaveBeenCalled();
556+
})
557+
`,
558558
output: dedent`
559-
console.log('hello');
560-
const { describe, expect, jest, test } = require('@jest/globals');
561-
const onClick = jest.fn();
562-
describe("suite", () => {
563-
test("foo");
564-
expect(onClick).toHaveBeenCalled();
565-
})
566-
`,
559+
console.log('hello');
560+
const { describe, expect, jest, test } = require('@jest/globals');
561+
const onClick = jest.fn();
562+
describe("suite", () => {
563+
test("foo");
564+
expect(onClick).toHaveBeenCalled();
565+
})
566+
`,
567567
errors: [
568568
{
569569
endColumn: 21,
@@ -575,21 +575,21 @@ ruleTester.run('prefer-importing-jest-globals', rule, {
575575
},
576576
{
577577
code: dedent`
578-
console.log('hello');
579-
const onClick = jest.fn();
580-
describe("suite", () => {
581-
test("foo");
582-
expect(onClick).toHaveBeenCalled();
583-
})
578+
console.log('hello');
579+
const onClick = jest.fn();
580+
describe("suite", () => {
581+
test("foo");
582+
expect(onClick).toHaveBeenCalled();
583+
})
584584
`,
585585
output: dedent`
586-
import { describe, expect, jest, test } from '@jest/globals';
587-
console.log('hello');
588-
const onClick = jest.fn();
589-
describe("suite", () => {
590-
test("foo");
591-
expect(onClick).toHaveBeenCalled();
592-
})
586+
import { describe, expect, jest, test } from '@jest/globals';
587+
console.log('hello');
588+
const onClick = jest.fn();
589+
describe("suite", () => {
590+
test("foo");
591+
expect(onClick).toHaveBeenCalled();
592+
})
593593
`,
594594
parserOptions: { sourceType: 'module' },
595595
errors: [

0 commit comments

Comments
 (0)