UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

15 lines (11 loc) 422 B
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; import { AuthGuard } from './auth.guard'; let guard: AuthGuard; beforeEach(() => { TestBed.configureTestingModule({ providers: [AuthGuard], imports: [HttpClientTestingModule] }); }); it('should create', () => { guard = TestBed.inject(AuthGuard); expect(guard).toBeTruthy(); });