72 lines
2.5 KiB
TypeScript
72 lines
2.5 KiB
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
|
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
|
import { ToastrModule } from 'ngx-toastr';
|
|
import { MatTableModule } from '@angular/material/table';
|
|
import { DatePipe } from '@angular/common';
|
|
import { CommandsComponent } from './commands.component';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatDividerModule } from '@angular/material/divider';
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { MatInputModule } from '@angular/material/input';
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
import { MatProgressSpinner, MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
import { JoyrideModule } from 'ngx-joyride';
|
|
|
|
describe('CommandsComponent', () => {
|
|
let component: CommandsComponent;
|
|
let fixture: ComponentFixture<CommandsComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
declarations: [CommandsComponent],
|
|
imports: [
|
|
HttpClientTestingModule,
|
|
ToastrModule.forRoot(),
|
|
BrowserAnimationsModule,
|
|
MatDividerModule,
|
|
MatFormFieldModule,
|
|
MatInputModule,
|
|
MatIconModule,
|
|
MatButtonModule,
|
|
MatTableModule,
|
|
MatPaginatorModule,
|
|
MatTooltipModule,
|
|
FormsModule,
|
|
MatProgressSpinner,
|
|
MatProgressSpinnerModule,
|
|
MatDialogModule,
|
|
ReactiveFormsModule,
|
|
MatSelectModule,
|
|
NgxChartsModule,
|
|
DatePipe,
|
|
TranslateModule.forRoot(),
|
|
JoyrideModule.forRoot(),
|
|
],
|
|
providers: [
|
|
{ provide: MatDialogRef, useValue: {} },
|
|
{ provide: MAT_DIALOG_DATA, useValue: {} }
|
|
]
|
|
|
|
}).compileComponents();
|
|
});
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(CommandsComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
|
|
});
|