Commit e2b4f18f authored by Maël QUAISSARD's avatar Maël QUAISSARD Committed by Gaëlle FOURNIER
Browse files

VITAM-UI-129 : Fix Unit tests


Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>
parent 606b2531
......@@ -47,6 +47,51 @@ describe('SecurisationCheckTabComponent', () => {
let component: SecurisationCheckTabComponent;
let fixture: ComponentFixture<SecurisationCheckTabComponent>;
const securisationValue = {
id: 'id',
idAppSession: 'idAppSession',
idRequest: 'idRequest',
parentId: 'parentId',
type: 'type',
typeProc: 'typeProc',
dateTime: new Date('1995-12-17'),
outcome: 'outcome',
outDetail: 'outDetail',
outMessage: 'outMessage',
data: 'data',
parsedData: {
Size: 2
},
objectId: 'objectId',
collectionName: 'collectionName',
agId: 'agId',
agIdApp: 'agIdApp',
agIdExt: 'agIdExt',
rightsStatementIdentifier: 'rightsStatementIdentifier',
events: [{
id: 'id2',
idAppSession: 'idAppSession2',
idRequest: 'idRequest2',
parentId: 'id',
type: 'type',
typeProc: 'typeProc',
dateTime: new Date('1995-12-17'),
outcome: 'outcome',
outDetail: 'outDetail',
outMessage: 'outMessage',
data: 'data',
parsedData: {
dataKey: 'dataValue'
},
objectId: 'objectId',
collectionName: 'collectionName',
agId: 'agId',
agIdApp: 'agIdApp',
agIdExt: 'agIdExt',
rightsStatementIdentifier: 'rightsStatementIdentifier'
}]
};
beforeEach(async(() => {
const activatedRouteMock = {
params: of({tenantIdentifier: 1}),
......@@ -72,6 +117,7 @@ describe('SecurisationCheckTabComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(SecurisationCheckTabComponent);
component = fixture.componentInstance;
component.securisation = securisationValue;
fixture.detectChanges();
});
......
import { CommonModule } from '@angular/common';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MatPseudoCheckboxModule, MatRippleModule } from '@angular/material/core';
import { VitamUISelectAllOptionComponent } from './vitamui-select-all-option.component';
describe('VitamuiSelectAllOptionComponent', () => {
let component: VitamUISelectAllOptionComponent;
let fixture: ComponentFixture<VitamUISelectAllOptionComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
CommonModule,
MatPseudoCheckboxModule,
MatRippleModule
],
declarations: [ VitamUISelectAllOptionComponent ]
})
.compileComponents();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment