angular-cli/packages/schematics/angular/guard/files/__name@dasherize__.guard.spec.ts.template
Alan Agius 36eba0c9fc refactor: use .template suffix for all schematic files
Currently when using `ivy-ngcc` it will print out a warning

```
Failed to read entry point info from //node_modules/@schematics/angular/workspace/files/package.json with error SyntaxError: Unexpected token < in JSON at position 1121.
```

Fixes #13378
2019-01-16 10:29:56 -08:00

16 lines
449 B
Plaintext

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();
}));
});