AAE-36664 additional linting rules, cleanup (#11084)

This commit is contained in:
Denys Vuika
2025-08-13 08:01:09 -04:00
committed by GitHub
parent e83c8f7fd7
commit b16e326ac3
71 changed files with 235 additions and 2994 deletions
@@ -58,7 +58,7 @@ describe('FlagsComponent', () => {
});
it('should update inputValue$ when onInputChange is called', (done) => {
(component as any).onInputChange('test');
component.onInputChange('test');
component.inputValue$.subscribe((value) => {
expect(value).toBe('test');
done();
@@ -67,12 +67,12 @@ describe('FlagsComponent', () => {
it('should clear inputValue when onClearInput is called', () => {
component.inputValue = 'test';
(component as any).onClearInput();
component.onClearInput();
expect(component.inputValue).toBe('');
});
it('should filter flags when when onClearInput is called', (done) => {
(component as any).onInputChange('feature1');
component.onInputChange('feature1');
component.flags$.subscribe((flags) => {
expect(flags).toEqual([{ fictive: false, flag: 'feature1', value: true }]);
done();
@@ -123,11 +123,11 @@ export class FlagsComponent {
this.featuresService.enable(value);
}
protected onInputChange(text: string) {
onInputChange(text: string) {
this.inputValue$.next(text);
}
protected onClearInput() {
onClearInput() {
this.inputValue = '';
this.inputValue$.next('');
}