22 lines
487 B
TypeScript
22 lines
487 B
TypeScript
// Core imports
|
|
import { TestBed } from '@angular/core/testing';
|
|
|
|
// Application imports
|
|
import { RoleGuard } from '@app/_guards/role.guard';
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
|
|
describe('RoleGuard', () => {
|
|
let guard: RoleGuard;
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [RouterTestingModule],
|
|
});
|
|
guard = TestBed.inject(RoleGuard);
|
|
});
|
|
|
|
it('should be created', () => {
|
|
expect(guard).toBeTruthy();
|
|
});
|
|
});
|