Skip to content
Snippets Groups Projects
Commit 0e85a1c7 authored by Alexander Reifschneider's avatar Alexander Reifschneider
Browse files

OZG-7166 add small improvement

parent 6549fd56
No related branches found
No related tags found
1 merge request!37OZG-7166 Add impressum page
......@@ -11,7 +11,7 @@
<main class="flex-auto bg-background-50">
<router-outlet></router-outlet>
</main>
@if (!isBayernProd) {
@if (!isBayern) {
<footer class="ozg-prose flex justify-center gap-4" data-test-id="navigation-footer">
<nav>
<ul class="flex flex-wrap justify-center gap-9">
......
......@@ -27,18 +27,18 @@ describe('AppComponent', () => {
describe('component', () => {
describe('ngOnInit', () => {
it('should set isBayernProd', () => {
it('should set isBayern', () => {
component.ngOnInit();
expect(component.isBayernProd).toBe(false);
expect(component.isBayern).toBe(false);
});
});
});
describe('template', () => {
describe('production bayern', () => {
describe('bundesland bayern', () => {
it('should NOT show navigation footer', () => {
component.isBayernProd = true;
component.isBayern = true;
fixture.detectChanges();
......@@ -46,7 +46,7 @@ describe('AppComponent', () => {
});
it('should show navigation footer', () => {
component.isBayernProd = false;
component.isBayern = false;
fixture.detectChanges();
......
......@@ -10,9 +10,9 @@ import { environment } from '../environments/environment';
templateUrl: './app.component.html',
})
export class AppComponent implements OnInit {
public isBayernProd: boolean;
public isBayern: boolean;
ngOnInit() {
this.isBayernProd = environment.production && environment.bundesland === 'by';
this.isBayern = environment.bundesland === 'by';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment