Unit Testing stuff
This commit is contained in:
@@ -20,4 +20,8 @@ describe('HeaderComponent', () => {
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should return the correct user name', () => {
|
||||
expect(component.getUserName()).toEqual('Logged out');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
@media (min-width: 768px) {
|
||||
#profile-popover {
|
||||
width: 15em;
|
||||
max-width: 15em;
|
||||
right: 1em;
|
||||
top: $header_height + 1em;
|
||||
border-radius: 1em;
|
||||
|
||||
@@ -12,8 +12,6 @@ export class ProfileComponent implements OnInit {
|
||||
@Input() user?: User;
|
||||
@Output() showProfilePopoverChange = new EventEmitter<boolean>();
|
||||
|
||||
isLoggedIn = true;
|
||||
|
||||
constructor(private eRef: ElementRef) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user