All files / src/app/core/navigation/administration administration.component.ts

100% Statements 9/9
75% Branches 3/4
100% Functions 3/3
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 205x     5x             5x     1x 1x     5x 5x  
import { Component, OnInit } from '@angular/core';
 
import { Permission } from '../../../shared/models/permissions';
import { AuthStorageService } from '../../../shared/services/auth-storage.service';
 
@Component({
  selector: 'cd-administration',
  template: require('./administration.component.html'),
  styles: []
})
export class AdministrationComponent implements OnInit {
  userPermission: Permission;
 
  constructor(private authStorageService: AuthStorageService) {
    this.userPermission = this.authStorageService.getPermissions().user;
  }
 
  ngOnInit() {}
}