4: Add Services
[examples/angular-tour-of-heroes] / src / app / hero.service.spec.ts
diff --git a/src/app/hero.service.spec.ts b/src/app/hero.service.spec.ts
new file mode 100644 (file)
index 0000000..082791a
--- /dev/null
@@ -0,0 +1,12 @@
+import { TestBed } from '@angular/core/testing';
+
+import { HeroService } from './hero.service';
+
+describe('HeroService', () => {
+  beforeEach(() => TestBed.configureTestingModule({}));
+
+  it('should be created', () => {
+    const service: HeroService = TestBed.get(HeroService);
+    expect(service).toBeTruthy();
+  });
+});