From b03a98735282dfb302cd8a4399106988a5fe94d8 Mon Sep 17 00:00:00 2001 From: Thiago Martins Date: Mon, 26 Feb 2024 09:52:45 -0300 Subject: [PATCH] style: fix indentation --- .../enforce-custom-provider-type.rule.spec.ts | 100 +++++++++--------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/tests/rules/enforce-custom-provider-type.rule.spec.ts b/tests/rules/enforce-custom-provider-type.rule.spec.ts index 724bff3..c6f2bd3 100644 --- a/tests/rules/enforce-custom-provider-type.rule.spec.ts +++ b/tests/rules/enforce-custom-provider-type.rule.spec.ts @@ -162,19 +162,19 @@ ruleTester.run('enforce-custom-provider-type', enforceCustomProviderTypeRule, { // Test for when the provider (class) is not of the preferred type (factory) in the "providers" array { code: ` - import { Module } from '@nestjs/common'; - import { SomeClass } from './some-class'; + import { Module } from '@nestjs/common'; + import { SomeClass } from './some-class'; - @Module({ - providers: [ - { - provide: 'TOKEN', - useClass: SomeClass, - } - ] - }) - export class SomeModule {} - `, + @Module({ + providers: [ + { + provide: 'TOKEN', + useClass: SomeClass, + } + ] + }) + export class SomeModule {} + `, errors: [ { messageId: 'providerTypeMismatch', @@ -189,19 +189,19 @@ ruleTester.run('enforce-custom-provider-type', enforceCustomProviderTypeRule, { // Test for when the provider (existing) is not of the preferred type (factory) in the "providers" array { code: ` - import { Module } from '@nestjs/common'; - import { SomeClass } from './some-class'; - - @Module({ - providers: [ - { - provide: 'TOKEN', - useExisting: SomeClass, - } - ] - }) - export class SomeModule {} - `, + import { Module } from '@nestjs/common'; + import { SomeClass } from './some-class'; + + @Module({ + providers: [ + { + provide: 'TOKEN', + useExisting: SomeClass, + } + ] + }) + export class SomeModule {} + `, errors: [ { messageId: 'providerTypeMismatch', @@ -216,31 +216,31 @@ ruleTester.run('enforce-custom-provider-type', enforceCustomProviderTypeRule, { // Test for when many provider types are not of the preferred type (factory) in the "providers" array { code: ` - import { Module } from '@nestjs/common'; - import { SomeClass } from './some-class'; - - @Module({ - providers: [ - { - provide: 'TOKEN', - useExisting: SomeClass, - }, - { - provide: 'TOKEN', - useClass: SomeClass, - }, - { - provide: 'TOKEN', - useValue: 'value-in-providers-array', - }, - { - provide: 'TOKEN', - useFactory: () => 'value-in-providers-array', - } - ] - }) - export class SomeModule {} - `, + import { Module } from '@nestjs/common'; + import { SomeClass } from './some-class'; + + @Module({ + providers: [ + { + provide: 'TOKEN', + useExisting: SomeClass, + }, + { + provide: 'TOKEN', + useClass: SomeClass, + }, + { + provide: 'TOKEN', + useValue: 'value-in-providers-array', + }, + { + provide: 'TOKEN', + useFactory: () => 'value-in-providers-array', + } + ] + }) + export class SomeModule {} + `, errors: [ { messageId: 'providerTypeMismatch',