Promact/slack-erp-custom-integration-mvc

View on GitHub
Slack.Automation/Promact.Erp.Web/app/taskmail/taskmail.component.spec.ts

Summary

Maintainability
B
5 hrs
Test Coverage
´╗┐declare var describe, it, beforeEach, expect;
import { async, TestBed } from '@angular/core/testing';
import { RouterModule, Routes } from '@angular/router';
import { RouterLinkStubDirective } from '../shared/mock/mock.routerLink';
import { TaskMailComponent } from './taskmail.component';
import { AppModule } from '../app.module';

describe('Task Mail Component Test', () => {
    const routes: Routes = [];

    beforeEach(async(() => {
        TestBed.configureTestingModule({
            declarations: [RouterLinkStubDirective],
            imports: [AppModule,RouterModule.forRoot(routes, { useHash: true })],
            providers: []
        }).compileComponents();
    }));

    it("should be defined", () => {
        let fixture = TestBed.createComponent(TaskMailComponent);
        let taskMailComponent = fixture.componentInstance;
        expect(taskMailComponent).toBeDefined();
    });
});