Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
5cd6f095
There was a problem fetching the pipeline summary.
Commit
5cd6f095
authored
7 years ago
by
FORESTIER Fabien
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests
parent
9568cb08
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webapp/src/app/geosource/components/metadata-list/metadata-list.component.spec.ts
+6
-4
6 additions, 4 deletions
.../components/metadata-list/metadata-list.component.spec.ts
with
6 additions
and
4 deletions
webapp/src/app/geosource/components/metadata-list/metadata-list.component.spec.ts
+
6
−
4
View file @
5cd6f095
...
@@ -13,6 +13,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
...
@@ -13,6 +13,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import
{
MockComponent
}
from
'
ng2-mock-component
'
;
import
{
MockComponent
}
from
'
ng2-mock-component
'
;
import
{
SuggestionComponent
,
FilterListComponent
}
from
'
..
'
;
import
{
SuggestionComponent
,
FilterListComponent
}
from
'
..
'
;
import
{
FilterDetailComponent
}
from
'
../filter-list/filter-detail/filter-detail.component
'
;
import
{
FilterDetailComponent
}
from
'
../filter-list/filter-detail/filter-detail.component
'
;
import
{
PaginatorComponent
}
from
'
../../../shared/components/paginator/paginator.component
'
;
describe
(
'
MetadataListComponent
'
,
()
=>
{
describe
(
'
MetadataListComponent
'
,
()
=>
{
const
datasetList
=
[{
const
datasetList
=
[{
...
@@ -70,7 +71,8 @@ describe('MetadataListComponent', () => {
...
@@ -70,7 +71,8 @@ describe('MetadataListComponent', () => {
MockComponent
({
selector
:
'
app-sort
'
}),
MockComponent
({
selector
:
'
app-sort
'
}),
SuggestionComponent
,
SuggestionComponent
,
FilterListComponent
,
FilterListComponent
,
FilterDetailComponent
FilterDetailComponent
,
PaginatorComponent
],
],
imports
:
[
imports
:
[
MatCardModule
,
MatCardModule
,
...
@@ -115,7 +117,7 @@ describe('MetadataListComponent', () => {
...
@@ -115,7 +117,7 @@ describe('MetadataListComponent', () => {
it
(
'
should initialize the page index
'
,
()
=>
{
it
(
'
should initialize the page index
'
,
()
=>
{
// When
// When
component
.
ngOnInit
();
component
.
ngOnInit
();
expect
(
component
.
paginator
.
pageIndex
).
toEqual
(
5
);
expect
(
component
.
paginator
.
pageIndex
).
toEqual
(
6
);
// Value of the service plus 1
});
});
it
(
'
should get list of metadata from service
'
,
()
=>
{
it
(
'
should get list of metadata from service
'
,
()
=>
{
...
@@ -137,7 +139,7 @@ describe('MetadataListComponent', () => {
...
@@ -137,7 +139,7 @@ describe('MetadataListComponent', () => {
it
(
'
should initialize the page index from service
'
,
()
=>
{
it
(
'
should initialize the page index from service
'
,
()
=>
{
// When
// When
component
.
search
();
component
.
search
();
expect
(
component
.
paginator
.
pageIndex
).
toEqual
(
2
);
expect
(
component
.
paginator
.
pageIndex
).
toEqual
(
3
);
// Value of the service plus 1
});
});
it
(
'
should initialize the page size from service
'
,
()
=>
{
it
(
'
should initialize the page size from service
'
,
()
=>
{
...
@@ -149,7 +151,7 @@ describe('MetadataListComponent', () => {
...
@@ -149,7 +151,7 @@ describe('MetadataListComponent', () => {
it
(
'
should get count of metadata from service
'
,
()
=>
{
it
(
'
should get count of metadata from service
'
,
()
=>
{
// When
// When
component
.
search
();
component
.
search
();
expect
(
component
.
metadata_total
).
toBe
(
10
);
expect
(
component
.
paginator
.
length
).
toBe
(
10
);
});
});
it
(
'
should get the list of metadata from service
'
,
()
=>
{
it
(
'
should get the list of metadata from service
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment