@@ -548,22 +548,22 @@ ruleTester.run('prefer-importing-jest-globals', rule, {
548
548
} ,
549
549
{
550
550
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
+ ` ,
558
558
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
+ ` ,
567
567
errors : [
568
568
{
569
569
endColumn : 21 ,
@@ -575,21 +575,21 @@ ruleTester.run('prefer-importing-jest-globals', rule, {
575
575
} ,
576
576
{
577
577
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
+ })
584
584
` ,
585
585
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
+ })
593
593
` ,
594
594
parserOptions : { sourceType : 'module' } ,
595
595
errors : [
0 commit comments