mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix eslint warnigs for core project (#7506)
This commit is contained in:
@@ -52,7 +52,7 @@ describe('AboutGithubLinkComponent', () => {
|
||||
expect(titleElement.innerText).toEqual('mock-application-name');
|
||||
});
|
||||
|
||||
it('should display version', async() => {
|
||||
it('should display version', async () => {
|
||||
component.version = aboutGithubDetails.version;
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
@@ -60,14 +60,14 @@ describe('AboutGithubLinkComponent', () => {
|
||||
expect(version.innerText).toEqual('ABOUT.VERSION: 0.0.7');
|
||||
});
|
||||
|
||||
it('should display adf github link as default if url is not specified', async() => {
|
||||
it('should display adf github link as default if url is not specified', async () => {
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
const githubUrl = fixture.nativeElement.querySelector('[data-automation-id="adf-github-url"]');
|
||||
expect(githubUrl.innerText).toEqual(aboutGithubDetails.defualrUrl);
|
||||
});
|
||||
|
||||
it('should display the github link', async() => {
|
||||
it('should display the github link', async () => {
|
||||
component.url = aboutGithubDetails.url;
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
@@ -40,8 +40,8 @@ describe('AboutServerSettingsComponent', () => {
|
||||
component = fixture.componentInstance;
|
||||
appConfigService = TestBed.inject(AppConfigService);
|
||||
appConfigService.config = Object.assign(appConfigService.config, {
|
||||
'ecmHost': aboutGithubDetails.ecmHost,
|
||||
'bpmHost': aboutGithubDetails.bpmHost
|
||||
ecmHost: aboutGithubDetails.ecmHost,
|
||||
bpmHost: aboutGithubDetails.bpmHost
|
||||
});
|
||||
fixture.detectChanges();
|
||||
});
|
||||
@@ -50,7 +50,7 @@ describe('AboutServerSettingsComponent', () => {
|
||||
fixture.destroy();
|
||||
});
|
||||
|
||||
it('should fetch process and content hosts from the app.config.json file', async() => {
|
||||
it('should fetch process and content hosts from the app.config.json file', async () => {
|
||||
await fixture.whenStable();
|
||||
expect(component.bpmHost).toEqual(aboutGithubDetails.bpmHost);
|
||||
expect(component.ecmHost).toEqual(aboutGithubDetails.ecmHost);
|
||||
|
@@ -73,9 +73,7 @@ export class AboutComponent implements OnInit {
|
||||
this.dependencies = this.pkg?.dependencies;
|
||||
|
||||
if (this.dependencies) {
|
||||
const alfrescoPackages = Object.keys(this.dependencies).filter((val) => {
|
||||
return new RegExp(this.regexp).test(val);
|
||||
});
|
||||
const alfrescoPackages = Object.keys(this.dependencies).filter((val) => new RegExp(this.regexp).test(val));
|
||||
|
||||
alfrescoPackages.forEach((val) => {
|
||||
this.dependencyEntries.push({
|
||||
@@ -97,20 +95,16 @@ export class AboutComponent implements OnInit {
|
||||
this.discovery.getEcmProductInfo().subscribe((repository) => {
|
||||
this.repository = repository;
|
||||
|
||||
this.statusEntries = Object.keys(repository.status).map((key) => {
|
||||
return {
|
||||
property: key,
|
||||
value: repository.status[key]
|
||||
};
|
||||
});
|
||||
this.statusEntries = Object.keys(repository.status).map((key) => ({
|
||||
property: key,
|
||||
value: repository.status[key]
|
||||
}));
|
||||
|
||||
if (repository.license) {
|
||||
this.licenseEntries = Object.keys(repository.license).map((key) => {
|
||||
return {
|
||||
property: key,
|
||||
value: repository.license[key]
|
||||
};
|
||||
});
|
||||
this.licenseEntries = Object.keys(repository.license).map((key) => ({
|
||||
property: key,
|
||||
value: repository.license[key]
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ export const mockDependencies = {
|
||||
'@angular/mock-services': '8.0.0'
|
||||
};
|
||||
|
||||
export const mockPlugins = <any> [
|
||||
export const mockPlugins = [
|
||||
{
|
||||
$name: 'plugin1',
|
||||
$version: '1.0.0',
|
||||
|
Reference in New Issue
Block a user