Skip to content
Snippets Groups Projects
notes-dialog.component.spec.ts 1.21 KiB
Newer Older
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Paulina Nogal's avatar
Paulina Nogal committed
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SharedModule } from '@app/shared/shared.module';
import { CoreModule } from '@app/core/core.module';
import { DataService } from '@app/core/data.service';
import { HttpClientModule } from '@angular/common/http';
Paulina Nogal's avatar
Paulina Nogal committed
import { NotesDialogComponent } from './notes-dialog.component';
import { MAT_DIALOG_DATA, MatDialogRef, MatInputModule } from '@angular/material';
Paulina Nogal's avatar
Paulina Nogal committed

describe('NotesDialogComponent', () => {
	let component: NotesDialogComponent;
	let fixture: ComponentFixture<NotesDialogComponent>;

	beforeEach(async(() => {
		TestBed.configureTestingModule({
			imports: [HttpClientModule, CoreModule, SharedModule, MatInputModule, BrowserAnimationsModule],
			providers: [DataService, { provide: MAT_DIALOG_DATA, useValue: {} }, { provide: MatDialogRef, useValue: {} }],
			declarations: [ NotesDialogComponent ]
Paulina Nogal's avatar
Paulina Nogal committed
	})
	.compileComponents();
	}));

	beforeEach(() => {
		fixture = TestBed.createComponent(NotesDialogComponent);
		component = fixture.componentInstance;
		fixture.detectChanges();
	});

	it('should create', () => {
		expect(component).toBeTruthy();
	});
});