mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-16 18:12:50 +00:00
[ACS-12441] unit tests fixes [link-adf:improvement/AAE-51237-upgrade-angular-to-v21][ci:force]
This commit is contained in:
+4
@@ -59,6 +59,10 @@ describe('ToolbarMenuItemComponent', () => {
|
||||
appExtensionService = TestBed.inject(AppExtensionService);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
fixture.destroy();
|
||||
});
|
||||
|
||||
it('should run action on click', async () => {
|
||||
const runActionById = spyOn(appExtensionService, 'runActionById');
|
||||
|
||||
|
||||
@@ -26,10 +26,15 @@
|
||||
|
||||
import 'zone.js';
|
||||
import 'zone.js/testing';
|
||||
import { getTestBed } from '@angular/core/testing';
|
||||
import { getTestBed, TestBed } from '@angular/core/testing';
|
||||
import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing';
|
||||
import { provideZoneChangeDetection } from '@angular/core';
|
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(BrowserTestingModule, platformBrowserTesting(), {
|
||||
teardown: { destroyAfterEach: false }
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({ providers: [provideZoneChangeDetection()] });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user