github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/Decentralized-Energy-Composer-master/angular-app/src/app/app.component.spec.ts (about)

     1  /* tslint:disable:no-unused-variable */
     2  
     3  import { TestBed, async } from '@angular/core/testing';
     4  import { RouterTestingModule } from '@angular/router/testing';
     5  import { AppComponent } from './app.component';
     6  
     7  describe('AppComponent', () => {
     8    beforeEach(() => {
     9      TestBed.configureTestingModule({
    10        imports: [
    11          RouterTestingModule
    12        ],
    13        declarations: [
    14          AppComponent
    15        ],
    16      });
    17      TestBed.compileComponents();
    18    });
    19  
    20    it('should create the app', async(() => {
    21      let fixture = TestBed.createComponent(AppComponent);
    22      let app = fixture.debugElement.componentInstance;
    23      expect(app).toBeTruthy();
    24    }));
    25  
    26    it(`should have as title 'app works!'`, async(() => {
    27      let fixture = TestBed.createComponent(AppComponent);
    28      let app = fixture.debugElement.componentInstance;
    29      expect(app.title).toEqual('app works!');
    30    }));
    31  
    32  });