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

Add translations for slide toggle component


Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>
parent b80f45aa
......@@ -12,10 +12,10 @@
(blur)="onTouched()"
>
<div class="slide-toggle-inner">
<div class="slide-toggle-label">ON</div>
<div class="slide-toggle-label" i18n="SlideToggle enabled label @@EnabledLabel">Oui</div>
<div class="slide-toggle-thumb">
</div>
<div class="slide-toggle-label">OFF</div>
<div class="slide-toggle-label" i18n="SlideToggle disabled label @@DisabledLabel">Non</div>
</div>
</div>
<span><ng-content></ng-content></span>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -43,7 +43,7 @@ import {AccessContractService} from '../../../access-contract/access-contract.se
import {SecurisationService} from '../../securisation.service';
import { SecurisationCheckTabComponent } from './securisation-check-tab.component';
fdescribe('SecurisationCheckTabComponent', () => {
describe('SecurisationCheckTabComponent', () => {
let component: SecurisationCheckTabComponent;
let fixture: ComponentFixture<SecurisationCheckTabComponent>;
......
......@@ -11,6 +11,53 @@ describe('SecurisationPreviewComponent', () => {
let component: SecurisationPreviewComponent;
let fixture: ComponentFixture<SecurisationPreviewComponent>;
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 accessContractServiceMock = {
getAllForTenant: () => of([])
};
......@@ -19,7 +66,6 @@ describe('SecurisationPreviewComponent', () => {
params: of({tenantIdentifier: 1})
};
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SecurisationPreviewComponent],
providers: [
......@@ -35,6 +81,7 @@ describe('SecurisationPreviewComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(SecurisationPreviewComponent);
component = fixture.componentInstance;
component.securisation = securisationValue;
fixture.detectChanges();
});
......
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