Skip to content

Commit

Permalink
chore: small fixes (#4879)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jul 10, 2023
1 parent e831296 commit fcaac27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion projects/kit/components/input-copy/input-copy.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions projects/kit/components/input-copy/input-copy.options.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fcaac27

Please sign in to comment.