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

     1  import { async, ComponentFixture, TestBed } from '@angular/core/testing';
     2  import { By } from '@angular/platform-browser';
     3  import { DebugElement } from '@angular/core';
     4  import { BrowserModule } from '@angular/platform-browser';
     5  import { NgModule } from '@angular/core';
     6  import { HttpModule } from '@angular/http';
     7  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
     8  import { Configuration } from '../configuration';
     9  import { DataService } from '../data.service';
    10  import { AllTransactionsComponent } from './AllTransactions.component';
    11  import {AllTransactionsService} from './AllTransactions.service';
    12  describe('TransactionComponent', () => {
    13    let component: AllTransactionsComponent;
    14    let fixture: ComponentFixture<AllTransactionsComponent>;
    15  
    16    beforeEach(async(() => {
    17      TestBed.configureTestingModule({
    18        declarations: [ AllTransactionsComponent ],
    19        imports: [
    20            BrowserModule,
    21            FormsModule,
    22            ReactiveFormsModule,
    23            HttpModule
    24          ],
    25        providers: [AllTransactionsService,DataService,Configuration]
    26      })
    27      .compileComponents();
    28    }));
    29  
    30    beforeEach(() => {
    31      fixture = TestBed.createComponent(AllTransactionsComponent);
    32      component = fixture.componentInstance;
    33      fixture.detectChanges();
    34    });
    35  
    36    it('should create', () => {
    37      expect(component).toBeTruthy();
    38    });
    39  });