angular-cli/packages/schematics/angular/guard/files/__name@dasherize__.guard.spec.ts.template
cexbrayat f3259df1c6 fix(@schematics/angular): uniformize guard spec with service spec
The current guard spec schematic uses `inject` whereas we dropped it for the service spec a while ago.
This commits updates the guard spec schematic to be similar to the current service spec.
2019-11-14 11:15:56 -08:00

17 lines
417 B
Plaintext

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