AAE-37689: Remove unused Angular CLI dependency (#4749)

* remove unused Angular CLI dependency

# Conflicts:
#	package-lock.json

* remove unused @schematics/angular dependency (already wrapped by nx/angular)

* remove the test messing with date pipe
This commit is contained in:
Denys Vuika
2025-08-22 07:21:45 -04:00
committed by GitHub
parent 7310aaa1da
commit 49a2c9bc47
3 changed files with 1 additions and 1917 deletions
+1 -1897
View File
File diff suppressed because it is too large Load Diff
-2
View File
@@ -76,7 +76,6 @@
"@angular-eslint/eslint-plugin-template": "19.3.0",
"@angular-eslint/schematics": "19.3.0",
"@angular-eslint/template-parser": "19.3.0",
"@angular/cli": "~19.2.0",
"@angular/compiler-cli": "19.2.6",
"@angular/language-service": "19.2.6",
"@cspell/eslint-plugin": "^9.2.0",
@@ -85,7 +84,6 @@
"@nx/workspace": "21.3.7",
"@playwright/test": "^1.53.2",
"@reportportal/agent-js-playwright": "^5.1.9",
"@schematics/angular": "19.2.7",
"@types/event-emitter": "^0.3.3",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "^2.0.8",
@@ -27,14 +27,11 @@ import { SaveSearchSidenavComponent } from './save-search-sidenav.component';
import { SavedSearchesService } from '@alfresco/adf-content-services';
import { AppTestingModule } from '../../../../testing/app-testing.module';
import { of, ReplaySubject } from 'rxjs';
import { TranslationService, UserPreferencesService, UserPreferenceValues } from '@alfresco/adf-core';
describe('SaveSearchSidenavComponent', () => {
let fixture: ComponentFixture<SaveSearchSidenavComponent>;
let component: SaveSearchSidenavComponent;
let savedSearchesService: SavedSearchesService;
let userPreferenceService: UserPreferencesService;
let translateService: TranslationService;
beforeEach(() => {
const mockService = {
@@ -55,8 +52,6 @@ describe('SaveSearchSidenavComponent', () => {
fixture = TestBed.createComponent(SaveSearchSidenavComponent);
component = fixture.componentInstance;
savedSearchesService = TestBed.inject(SavedSearchesService);
userPreferenceService = TestBed.inject(UserPreferencesService);
translateService = TestBed.inject(TranslationService);
});
it('should set navbar object if no search is saved', async () => {
@@ -96,17 +91,4 @@ describe('SaveSearchSidenavComponent', () => {
id: 'search1'
});
}));
it('should translate sidenav title when language is changed', fakeAsync(() => {
fixture.detectChanges();
savedSearchesService.savedSearches$.next([{ name: '1', order: 0, encodedUrl: 'abc' }]);
tick(100);
spyOn(translateService, 'instant');
savedSearchesService.savedSearches$.next([]);
expect(translateService.instant).toHaveBeenCalledTimes(1);
userPreferenceService.set(UserPreferenceValues.Locale, 'ar');
fixture.detectChanges();
tick(100);
expect(translateService.instant).toHaveBeenCalledTimes(2);
}));
});