From fcaac278e529e12a0b34288d265578926a539061 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Mon, 10 Jul 2023 14:31:40 +0300 Subject: [PATCH] chore: small fixes (#4879) --- .github/workflows/lint.yml | 2 +- .../kit/components/input-copy/input-copy.component.ts | 2 +- projects/kit/components/input-copy/input-copy.options.ts | 4 ++-- .../input-copy/test/input-copy.component.spec.ts | 9 --------- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 77d400b7455f..1285219aa544 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -94,7 +94,7 @@ jobs: uses: ./.github/actions/nodejs - name: Run eslint - run: npm run lint ${{ env.RUN_AUTOFIX == 'true' && '-- --fix' || '' }} + run: npm run lint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} - name: Apply changes after linting if: env.SUPPORT_AUTO_PUSH == 'true' diff --git a/projects/kit/components/input-copy/input-copy.component.ts b/projects/kit/components/input-copy/input-copy.component.ts index 32ba03548eec..ce7ea18237ee 100644 --- a/projects/kit/components/input-copy/input-copy.component.ts +++ b/projects/kit/components/input-copy/input-copy.component.ts @@ -104,7 +104,7 @@ export class TuiInputCopyComponent return !!this.textfield && this.textfield.focused; } - get size(): TuiSizeS | TuiSizeL { + get size(): TuiSizeL | TuiSizeS { return this.textfieldSize.size; } diff --git a/projects/kit/components/input-copy/input-copy.options.ts b/projects/kit/components/input-copy/input-copy.options.ts index 1154122a1805..eb662d5c969b 100644 --- a/projects/kit/components/input-copy/input-copy.options.ts +++ b/projects/kit/components/input-copy/input-copy.options.ts @@ -1,7 +1,7 @@ import {InjectionToken, ValueProvider} from '@angular/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {TuiContextWithImplicit} from '@taiga-ui/cdk'; +import {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputCopyOptions { readonly successMessage: PolymorpheusContent; diff --git a/projects/kit/components/input-copy/test/input-copy.component.spec.ts b/projects/kit/components/input-copy/test/input-copy.component.spec.ts index ff54360cee75..bf936134b3ce 100644 --- a/projects/kit/components/input-copy/test/input-copy.component.spec.ts +++ b/projects/kit/components/input-copy/test/input-copy.component.spec.ts @@ -64,15 +64,6 @@ describe(`InputCopy`, () => { expect(iconSrc).toBe(`tuiIconCopyLarge`); }); - it(`If component is small, icon size is small`, () => { - testComponent.size = `s`; - fixture.detectChanges(); - - const iconSrc = component.icon; - - expect(iconSrc).toBe(`tuiIconCopy`); - }); - it(`Icon is still available in readonly mode`, () => { testComponent.readOnly = true; fixture.detectChanges();