Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
E-Collectivite
E-Collectivite-angular-client
Commits
e65021e6
Commit
e65021e6
authored
Oct 15, 2019
by
Matthieu FAURE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FEAT Set app name
parent
384cf554
Pipeline
#6318
passed with stages
in 4 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/app/app.component.spec.ts
src/app/app.component.spec.ts
+3
-3
src/app/app.component.ts
src/app/app.component.ts
+1
-1
No files found.
src/app/app.component.spec.ts
View file @
e65021e6
...
...
@@ -21,16 +21,16 @@ describe('AppComponent', () => {
expect
(
app
).
toBeTruthy
();
}));
it
(
`should have as title '
app works!
'`
,
async
(()
=>
{
it
(
`should have as title '
E-Collectivité v2
'`
,
async
(()
=>
{
const
fixture
=
TestBed
.
createComponent
(
AppComponent
);
const
app
=
fixture
.
debugElement
.
componentInstance
;
expect
(
app
.
title
).
toEqual
(
'
app works!
'
);
expect
(
app
.
title
).
toEqual
(
'
E-Collectivité v2
'
);
}));
it
(
'
should render title in a h1 tag
'
,
async
(()
=>
{
const
fixture
=
TestBed
.
createComponent
(
AppComponent
);
fixture
.
detectChanges
();
const
compiled
=
fixture
.
debugElement
.
nativeElement
;
expect
(
compiled
.
querySelector
(
'
h1
'
).
textContent
).
toContain
(
'
app works!
'
);
expect
(
compiled
.
querySelector
(
'
h1
'
).
textContent
).
toContain
(
'
E-Collectivité v2
'
);
}));
});
src/app/app.component.ts
View file @
e65021e6
...
...
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls
:
[
'
./app.component.css
'
]
})
export
class
AppComponent
{
title
=
'
app works!
'
;
title
=
'
E-Collectivité v2
'
;
}
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