mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Fixed last unit tests
This commit is contained in:
parent
9f03f74f3f
commit
00740eeb5f
@ -15,7 +15,6 @@ module.exports = function (config) {
|
||||
included: true,
|
||||
watched: false
|
||||
},
|
||||
{ pattern: 'node_modules/chart.js/dist/Chart.js', included: true, watched: false },
|
||||
{ pattern: 'node_modules/raphael/raphael.min.js', included: true, watched: false },
|
||||
{ pattern: 'lib/core/src/lib/i18n/**/en.json', included: false, served: true, watched: false },
|
||||
{ pattern: 'lib/process-services-cloud/src/lib/i18n/*.json', included: false, served: true, watched: false },
|
||||
|
@ -16,7 +16,7 @@
|
||||
cancel
|
||||
</mat-icon>
|
||||
</mat-chip-row>
|
||||
<input *ngIf="!isReadonly()" matInput
|
||||
<input [disabled]="isReadonly()" matInput
|
||||
[formControl]="searchGroupsControl"
|
||||
[matAutocomplete]="auto"
|
||||
[matChipInputFor]="groupChipList"
|
||||
|
@ -18,21 +18,21 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { of } from 'rxjs';
|
||||
import { ProcessServiceCloudTestingModule } from './../../testing/process-service-cloud.testing.module';
|
||||
import { GroupCloudModule } from '../group-cloud.module';
|
||||
import { GroupCloudComponent } from './group-cloud.component';
|
||||
import { CoreTestingModule } from '@alfresco/adf-core';
|
||||
import { DebugElement, SimpleChange } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { IdentityGroupService } from '../services/identity-group.service';
|
||||
import { mockFoodGroups, mockMeatChicken, mockVegetableAubergine } from '../mock/group-cloud.mock';
|
||||
import { TranslationMock, TranslationService } from '@alfresco/adf-core';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
|
||||
describe('GroupCloudComponent', () => {
|
||||
let component: GroupCloudComponent;
|
||||
let fixture: ComponentFixture<GroupCloudComponent>;
|
||||
let element: HTMLElement;
|
||||
let identityGroupService: IdentityGroupService;
|
||||
let findGroupsByNameSpy: jasmine.Spy;
|
||||
let findGroupsByNameSpy;
|
||||
|
||||
// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
|
||||
/**
|
||||
@ -93,9 +93,11 @@ describe('GroupCloudComponent', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
CoreTestingModule,
|
||||
ProcessServiceCloudTestingModule,
|
||||
NoopAnimationsModule,
|
||||
GroupCloudModule
|
||||
],
|
||||
providers: [
|
||||
{ provide: TranslationService, useClass: TranslationMock }
|
||||
]
|
||||
});
|
||||
fixture = TestBed.createComponent(GroupCloudComponent);
|
||||
|
@ -1,7 +1,6 @@
|
||||
<form>
|
||||
<mat-form-field [floatLabel]="'auto'" class="adf-people-cloud" [class.adf-invalid]="hasError() && isDirty()">
|
||||
<mat-label *ngIf="!isReadonly()" id="adf-people-cloud-title-id" class="adf-people-cloud-title"
|
||||
[ngClass]="{'adf-people-cloud-title--focus': isFocused}">>{{ title | translate }}</mat-label>
|
||||
<mat-label *ngIf="!isReadonly()" id="adf-people-cloud-title-id">{{ title | translate }}</mat-label>
|
||||
<mat-chip-grid #userMultipleChipList [disabled]="isReadonly() || isValidationLoading()" data-automation-id="adf-cloud-people-chip-list">
|
||||
<mat-chip-row
|
||||
*ngFor="let user of selectedUsers"
|
||||
|
@ -39,7 +39,7 @@ describe('PeopleCloudComponent', () => {
|
||||
let fixture: ComponentFixture<PeopleCloudComponent>;
|
||||
let element: HTMLElement;
|
||||
let identityUserService: IdentityUserServiceInterface;
|
||||
let searchSpy: jasmine.Spy;
|
||||
let searchSpy;
|
||||
|
||||
// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
|
||||
/**
|
||||
|
@ -71,7 +71,6 @@
|
||||
"@editorjs/editorjs": "^2.26.5",
|
||||
"@editorjs/header": "2.7.0",
|
||||
"@editorjs/list": "1.8.0",
|
||||
"@editorjs/underline": "1.1.0",
|
||||
"@mat-datetimepicker/core": "11.0.3",
|
||||
"@ngx-translate/core": "^14.0.0",
|
||||
"@storybook/core-server": "^7.6.5",
|
||||
@ -109,6 +108,7 @@
|
||||
"@editorjs/code": "2.8.0",
|
||||
"@editorjs/inline-code": "1.4.0",
|
||||
"@editorjs/marker": "1.2.2",
|
||||
"@editorjs/underline": "^1.1.0",
|
||||
"@nrwl/angular": "15.9.3",
|
||||
"@nrwl/cli": "15.9.3",
|
||||
"@nrwl/eslint-plugin-nx": "15.9.3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user