Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dad
vitamui-pr-pastis
Commits
e2b4f18f
Commit
e2b4f18f
authored
Sep 16, 2020
by
Maël QUAISSARD
Committed by
Gaëlle FOURNIER
Sep 17, 2020
Browse files
VITAM-UI-129 : Fix Unit tests
Co-authored-by:
benemart
<
benedicte.martinez@cea.fr
>
parent
606b2531
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.spec.ts
View file @
e2b4f18f
...
...
@@ -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
();
});
...
...
ui/ui-frontend/projects/vitamui-library/src/lib/components/vitamui-select-all-option/vitamui-select-all-option.component.spec.ts
View file @
e2b4f18f
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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment