Skip to content

Commit 0a8bc96

Browse files
committed
tests
1 parent 9c4c643 commit 0a8bc96

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

projects/ngx-mask-lib/src/test/cva.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
22
import { runValueAccessorTests } from 'ngx-cva-test-suite';
3-
import { Component, ElementRef, ViewChild } from '@angular/core';
3+
import type { ElementRef} from '@angular/core';
4+
import { Component, ViewChild } from '@angular/core';
45
import { NgxMaskDirective, provideNgxMask } from 'ngx-mask';
56

67
@Component({
@@ -13,10 +14,10 @@ import { NgxMaskDirective, provideNgxMask } from 'ngx-mask';
1314
imports: [NgxMaskDirective],
1415
})
1516
export class CVAWrapperComponent {
16-
@ViewChild(NgxMaskDirective) defaultCtrl!: NgxMaskDirective;
17-
@ViewChild('ctrl') readonly ctrl!: ElementRef<HTMLInputElement>;
17+
@ViewChild(NgxMaskDirective) public defaultCtrl!: NgxMaskDirective;
18+
@ViewChild('ctrl') public readonly ctrl!: ElementRef<HTMLInputElement>;
1819

19-
get value(): string {
20+
public get value(): string {
2021
return this.ctrl?.nativeElement.value;
2122
}
2223
}

projects/ngx-mask-lib/src/test/type-number.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { equal } from './utils/test-functions.component';
1111
imports: [ReactiveFormsModule, NgxMaskDirective],
1212
template: ` <input id="maska" type="number" [mask]="mask()" [formControl]="form" /> `,
1313
})
14-
// eslint-disable-next-line @angular-eslint/component-class-suffix
14+
1515
export class TestTypeNumber {
1616
public form: FormControl = new FormControl('');
1717
public mask = signal<string>('');

0 commit comments

Comments
 (0)