angular-cli/packages/schematics/angular/guard/files/__name@dasherize__.guard.spec.ts
2018-06-05 18:50:06 -07:00

16 lines
449 B
TypeScript

import { TestBed, async, inject } from '@angular/core/testing';
import { <%= classify(name) %>Guard } from './<%= dasherize(name) %>.guard';
describe('<%= classify(name) %>Guard', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [<%= classify(name) %>Guard]
});
});
it('should ...', inject([<%= classify(name) %>Guard], (guard: <%= classify(name) %>Guard) => {
expect(guard).toBeTruthy();
}));
});