Innqube/iq-bootstrap-table

View on GitHub
src/app/app.component.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {async, TestBed} from '@angular/core/testing';

import {AppComponent} from './app.component';
import {NgxIqTableModule} from './component-wrapper/src/app/ngx-iq-table.module';
import {MockDataService} from './mock-data.service';
import {RouterTestingModule} from '@angular/router/testing';

describe('AppComponent', () => {
    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [
                AppComponent
            ],
            imports: [
                NgxIqTableModule,
                RouterTestingModule
            ],
            providers: [
                MockDataService
            ]
        }).compileComponents();
    }));

    it('should create the app', async(() => {
        const fixture = TestBed.createComponent(AppComponent);
        const app = fixture.debugElement.componentInstance;
        expect(app).toBeTruthy();
    }));

});